.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: transparent;
    /* padding: 1rem 0; */
    transition: all 0.3s ease;
}

/* 首页顶部样式 */
.home-header {
    background: transparent;
}

.home-header .nav-menu a {
    /* color: #FFFFFF; */
}

.home-header .nav-menu a:hover {
    /* color: #FFFFFF; */
}

.home-header .nav-menu a.active {
    /* text-decoration-color: #FFFFFF; */
}

.header-content {
    width: 100%;
    height: 7rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15rem;
}

.logo {
    flex: 1;
}

.logo img {
    height: 3.5rem;
    transition: all 0.3s ease;
}

.nav-menu {
    flex: 3;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 7rem;
    justify-content: space-around;
}

.nav-menu li {
    margin-right: 2.63rem;
    /*width: 6.25rem;*/
    line-height: 7rem;
}

.nav-menu a {
    font-weight: bold;
    font-size: 1.25rem;
    color: #000000;
    line-height: 1.88rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-menu a:hover {
    color: #0075C1;
}

.nav-menu a.active {
    text-decoration: underline;
    text-decoration-thickness: 0.25rem;; /* 下划线粗细 */
    text-underline-offset: 0.75rem; /* 下划线偏移距离 */
    text-decoration-color: #0075C1; /* 下划线颜色 */
    /* text-decoration: underline;
    text-decoration-color: #0075C1; */

}

.shop_url {
    font-family: Microsoft YaHei;
    font-weight: bold;
    font-size: 1rem;
    color: #000000;
    line-height: 1.88rem;
    margin-right: 3.8rem;
    cursor: pointer;
}

.lang-switch {
    width: 3.13rem;
    height: 3.13rem;
    line-height: 3.13rem;
    text-align: center;
    background: #0075C1;
    border-radius: 50%;
}

.lang-switch a {
    font-family: Microsoft YaHei;
    font-weight: bold;
    font-size: 1.13rem;
    color: #FFFFFF;
    text-decoration: none;
}

/* .lang-switch a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0075C1;
    transition: width 0.3s ease;
} */

/* .lang-switch a:hover {
    color: #0075C1;
} */

.lang-switch a:hover::after {
    width: 100%;
}

/* 滚动时的样式 */
.header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav-menu a {
    color: #000;
}

.header.scrolled .nav-menu a.active {
    text-decoration-color: #0075C1;
}

.header.scrolled .nav-menu a:hover {
    color: #0075C1;
}

/* 悬浮时的样式 */
.header:hover {
    background: #fff;
}

.header:hover .nav-menu a {
    color: #000;
}

.header:hover .nav-menu a.active {
    text-decoration-color: #0075C1;
}

.header:hover .nav-menu a:hover {
    color: #0075C1;
}

/* 副标签样式 */
.submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 2rem 15rem;
    display: none;
    background: #f4faff;
    z-index: 999;
    transition: all 0.3s ease;
}

.submenu-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.submenu-left {
    width: 100%;
    /* flex: 1; */
}

.submenu-left h3 {
    font-size: 1.5rem;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #0075C1;
    margin-bottom: 1.5rem;
}

.submenu-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    /* flex-wrap: wrap; */
    /* gap: 2rem; */
}

.submenu-left li {
    /* flex: 0 0 calc(50% - 1rem); */
    /* margin-bottom: 1.5rem; */
}

.submenu-left a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.13rem;
    font-family: PingFang SC;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.submenu-left a:hover {
    color: #0075C1;
}

.submenu-left a img {
    width: 16.88rem;
    height: 9.38rem;
    margin-bottom: 1rem;
    cursor: pointer;
    object-fit: contain;
}

.submenu-left a span {
    white-space: nowrap;
}

.submenu-right {
    flex: 1;
    text-align: right;
}

.submenu-right img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-content {
        width: 100%;
        padding: 0 2rem;
    }
    
    .logo img {
        width: 120px;
        height: auto;
    }
    
    .nav-menu li {
        margin-right: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
    }
    
    .submenu-container {
        padding: 1.5rem 2rem;
    }
    
    .submenu-content {
        flex-direction: column;
    }
    
    .submenu-right {
        margin-top: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo img {
        width: 100px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .lang-switch a {
        font-size: 0.9rem;
        margin-left: 1rem;
    }
    
    .submenu-container {
        padding: 1rem;
    }
}
.jump-a {
    text-decoration: none;
    color: inherit;
}