.header-box {
    position: fixed;
    z-index: 1000;
    width: 100%;
    top: 0;
    left: 0;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.header-nav-bar {
    background: #fff;
    height: 70px;
    border-bottom: 1px solid #2563EB;

    /* box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2); */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2%;
    box-sizing: border-box;
}

.logo-box-desktop {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-box-desktop .logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.mobile-header {
    display: none;
}

.nav-list {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2%;
}

.header-nav {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: center;
}

.header-nav > li {
    position: relative;
    flex-shrink: 0;
    margin-right: 5%;
    font-size: 15px;
    line-height: 1.6;
}

.header-nav > li:last-child {
    margin-right: 0;
}

.header-nav > li > a {
    color: #333333;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;

    transition: color 0.3s, border-color 0.3s;
    display: block;
    border-bottom: 2px solid transparent;
}

.header-nav > li > a:hover {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

.header-nav > li.active > a {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    border-radius: 0;
    margin-top: 8px;
    padding: 8px 0;
    list-style: none;
    z-index: 1001;
}

.sub-menu li {
    padding: 0;
    margin: 0;
}

.sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.sub-menu li a:hover {
    background: #FAF7F1;
    color: #2563EB;
}

.header-right {
    display: flex;
    align-items: center;
    width: 30%;
    justify-content: flex-end;
}

.language-select {
    position: relative;
    margin-right: 3%;
    width: auto;
    flex-shrink: 0;
}

.current-lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #333333;
    font-size: 14px;
    padding: 8px 15px;
    background: #FFFFFF;
    border: 1px solid #2563EB;
    border-radius: 0;
    transition: background 0.3s, color 0.3s;
}

.current-lang:hover {
    background: #2563EB;
    color: #FFFFFF;
}

.lang-arrow {
    margin-left: 8px;
    font-size: 10px;
    color: #999999;
}

.current-lang:hover .lang-arrow {
    color: #FFFFFF;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 100px;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    border-radius: 0;
    padding: 5px 0;
    list-style: none;
    z-index: 1001;
}

.lang-dropdown li {
    margin: 0;
    padding: 0;
}

.lang-dropdown li a {
    display: block;
    padding: 8px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.lang-dropdown li a:hover {
    background: #FAF7F1;
    color: #2563EB;
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 300px;
    min-width: 150px;
}

.search-input {
    width: 80%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #2563EB;
    border-radius: 0;
    font-size: 14px;
    color: #333333;
    background: #FFFFFF;
    transition: background 0.3s, border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #2563EB;
    background: #FAF7F1;
}

.search-input::placeholder {
    color: #999999;
}

.search-btn {
    height: 38px;
    width: 20%;
    padding: 0;
    background: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #477cf0;
}

.search-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.wechat-box {
    position: relative;
    margin-right: 3%;
    display: flex;
    align-items: center;
}

.wechat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #2563EB;
    border-radius: 50%;
    cursor: pointer;
    color: #333333;
    transition: all 0.3s;
}

.wechat-icon:hover {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
}

.wechat-icon svg {
    width: 22px;
    height: 22px;
}

.wechat-qrcode {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 50%;
    transform: translateX(50%);
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    z-index: 1002;
    width: 164px;
    box-sizing: border-box;
}

.wechat-qrcode::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 50%;
    transform: translateX(50%);
    border-width: 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent #FFFFFF;
}

.wechat-qrcode img {
    width: 140px;
    height: 140px;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.wechat-box:hover .wechat-qrcode {
    display: block;
}

/* 移动端菜单按�?*/
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s;
}

.menu-close {
    display: none;
}

/* iPad 1025px - 1280px */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    .header {
        padding: 0 15px;
    }

    .nav-list {
        flex: 1;
        margin: 0 20px;
    }

    .header-nav > li {
        margin-right: 25px;
        font-size: 14px;
    }

    .header-right {
        width: auto;
        flex-shrink: 0;
    }

    .search-box {
        width: 180px;
    }
}

/* iPad 769px - 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 0 15px;
    }

    .nav-list {
        flex: 1;
        margin: 0 15px;
    }

    .header-nav > li {
        margin-right: 20px;
        font-size: 13px;
    }

    .header-right {
        width: auto;
        flex-shrink: 0;
    }

    .search-box {
        width: 160px;
    }

    .language-select {
        margin-right: 10px;
    }

    .wechat-box {
        margin-right: 10px;
    }
}

/* 响应�?H5�?*/
@media screen and (max-width: 768px) {
    .header-nav-bar,
    .logo-bar,
    .logo-box-desktop {
        display: none;
    }
    
    .mobile-header {
        display: block;
        background: #fff;
        border-bottom: 1px solid #2563EB;
        padding: 10px 15px;
    }
    
    .header-row-1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .header-row-1-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .header-row-2 {
        margin-bottom: 10px;
    }
    
    .header-row-2 .search-box {
        width: 100%;
        max-width: none;
        display: flex;
    }
    
    .header-row-2 .search-input {
        flex: 1;
        display: block;
        background: #FFFFFF;
        color: #333333;
        border: 1px solid #2563EB;
    }
    
    .header-row-3 {
        display: flex;
        justify-content: center;
        padding: 5px 0;
    }
    
    .header-row-3 .mobile-logo {
        height: 50px;
        max-width: 100%;
        object-fit: contain;
    }
    
    .header {
        width: 100%;
        padding: 0 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .header-nav > li > a {
        color: #333333;
    }
    
    .header-nav > li > a:hover {
        color: #2563EB;
        border-bottom-color: #2563EB;
    }
    
    .header-nav > li.active > a {
        color: #2563EB;
        border-bottom-color: #2563EB;
    }
    
    .current-lang {
        color: #333333;
        background: #FFFFFF;
        border: 1px solid #2563EB;
    }
    
    .current-lang:hover {
        background: #2563EB;
        color: #FFFFFF;
    }
    
    .lang-arrow {
        color: #999999;
    }
    
    .current-lang:hover .lang-arrow {
        color: #FFFFFF;
    }
    
    .lang-dropdown {
        background: #FFFFFF;
    }
    
    .lang-dropdown li a {
        color: #333333;
    }
    
    .lang-dropdown li a:hover {
        background: #FAF7F1;
        color: #2563EB;
    }
    
    .wechat-icon {
        background: #FFFFFF;
        color: #333333;
        border: 1px solid #2563EB;
    }
    
    .wechat-icon:hover {
        background: #2563EB;
        color: #FFFFFF;
        border-color: #2563EB;
    }
    
    .search-input {
        background: #FFFFFF;
        color: #333333;
        border: 1px solid #2563EB;
    }
    
    .search-input::placeholder {
        color: #999999;
    }
    
    .search-input:focus {
        border-color: #2563EB;
        background: #FAF7F1;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        order: 0;
        z-index: 1004;
    }
    
    .mobile-menu-btn span {
        background: #2563EB;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
        will-change: opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .nav-list {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #FFFFFF;
        padding: 80px 20px 20px;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: none;
        overflow-y: auto;
        margin: 0;
        will-change: transform;
        backface-visibility: hidden;
    }
    
    .nav-list.active {
        transform: translateX(0);
    }
    
    .menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
        color: #999999;
        cursor: pointer;
        line-height: 1;
        transition: color 0.3s;
    }
    
    .menu-close:hover {
        color: #2563EB;
    }
    
    .header-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .header-nav > li {
        margin-right: 0;
        margin-bottom: 0;
        width: 100%;
        border-bottom: 1px solid #E5E5E5;
        font-size: 100%;
    }
    
    .header-nav > li:last-child {
        border-bottom: none;
    }
    
    .header-nav > li > a {
        padding: 15px 0;
        border-bottom: none;
        font-size: 15px;
        display: block;
    }
    
    .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        margin: 10px 0;
        padding: 0 0 0 15px;
        background: transparent;
        border-left: 2px solid #2563EB;
    }
    
    .sub-menu li a {
        padding: 8px 0;
        color: #666666;
    }
    
    .sub-menu li a:hover {
        background: transparent;
        color: #2563EB;
    }
    
    .mobile-header .mobile-menu-btn {
        display: flex;
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        order: 0;
        z-index: 1004;
    }
    
    .mobile-header .mobile-menu-btn span {
        background: #2563EB;
    }
    
    .mobile-header .language-select {
        margin-right: 0;
    }
    
    .mobile-header .current-lang {
        color: #333333;
        background: #FFFFFF;
        border: 1px solid #2563EB;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .mobile-header .current-lang:hover {
        background: #2563EB;
        color: #FFFFFF;
    }
    
    .mobile-header .lang-arrow {
        color: #999999;
    }
    
    .mobile-header .current-lang:hover .lang-arrow {
        color: #FFFFFF;
    }
    
    .mobile-header .lang-dropdown {
        background: #FFFFFF;
    }
    
    .mobile-header .lang-dropdown li a {
        color: #333333;
    }
    
    .mobile-header .lang-dropdown li a:hover {
        background: #FAF7F1;
        color: #2563EB;
    }
    
    .mobile-header .wechat-icon {
        background: #FFFFFF;
        color: #333333;
        border: 1px solid #2563EB;
        width: 36px;
        height: 36px;
    }
    
    .mobile-header .wechat-icon:hover {
        background: #2563EB;
        color: #FFFFFF;
        border-color: #2563EB;
    }
    
    .mobile-header .wechat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-header .wechat-qrcode {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }
    
    .mobile-header .search-box {
        display: flex;
    }
    
    .mobile-header .search-btn {
        width: 40px;
    }
    
    .mobile-header .language-select {
        position: relative;
    }
    
    .mobile-header .lang-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        margin-top: 5px;
        z-index: 1002;
        min-width: 120px;
    }
    
    .mobile-header .wechat-box {
        position: relative;
    }
    
    .mobile-header .wechat-qrcode {
        position: absolute;
        top: 100%;
        right: 80px;
        margin-top: 5px;
        z-index: 1002;
        display: none;
    }
    
    .mobile-header .lang-dropdown {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .mobile-header {
        padding: 8px 12px;
    }
    
    .mobile-header .header-row-1,
    .mobile-header .header-row-2 {
        margin-bottom: 8px;
    }
    
    .mobile-header .header-row-1-right {
        gap: 8px;
    }
    
    .mobile-header .current-lang {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .mobile-header .wechat-icon {
        width: 32px;
        height: 32px;
    }
    
    .mobile-header .wechat-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .mobile-header .header-row-3 .mobile-logo {
        /* height: 40px; */
    }
    
    .wechat-qrcode img {
        width: 120px;
        height: 120px;
    }
    
    .wechat-qrcode {
        width: 144px;
    }
}
