/* ==========================================
   头部基础结构 (Header)
   ========================================== */
.b2b-header-wrapper {
    display: flex; align-items: center; width: 100%; background: #FFF;
    padding: 0 50px; box-sizing: border-box; 
    height: 100px; transition: all 0.3s ease-in-out; position: fixed; top: 0; left: 0; z-index: 9999;
}
.b2b-header-wrapper.header-scrolled { height: 75px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Logo 尺寸 */
.header-logo img { height: 25px; width: auto; display: block; }

/* 菜单布局 */
.header-nav { margin-left: 400px; height: 100%; }

/* 右侧组合：增加 margin-right 使其整体往左移动 */
.header-right-group { 
    display: flex; 
    align-items: center; 
    margin-left: auto; 
    margin-right: 20px; 
    gap: 180px; 
}

.nav-list { display: flex; list-style: none; padding: 0; margin: 0; height: 100%; }

.nav-link {
    text-decoration: none; color: #333; font-weight: 500; font-size: 15px; text-transform: uppercase;
    padding: 0 15px; height: 100%; display: flex; align-items: center; position: relative; transition: all 0.3s;
    gap: 8px; white-space: nowrap;
}

.nav-link:hover, .nav-link.active, .has-dropdown:hover > .nav-link { color: #F08200 !important; background-color: #F8F8F8; }
.nav-link::after { 
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px; 
    background: #F08200; transition: width 0.3s; 
}
.nav-link:hover::after, .nav-link.active::after, .has-dropdown:hover > .nav-link::after { width: 100%; }

/* 下拉菜单 */
.dropdown-arrow { transition: transform 0.3s ease; color: #999; }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); color: #F08200; }
.has-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: #FFF; min-width: 240px;
    list-style: none; padding: 10px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid #F08200; z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 12px 20px; color: #333; text-decoration: none; transition: 0.2s; font-size: 14px; }
.dropdown-menu li a:hover { background: #FFF5E6; color: #F08200; padding-left: 25px; }
.special-highlight-link { color: #F08200 !important; font-weight: 700 !important; background-color: #FFF9F0; }

/* 搜索框：优化边框和图标居中 */
.custom-search {
    display: flex;
    align-items: center;
    width: 220px;       
    height: 38px;
    border: 1.5px solid #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box; 
}

.custom-search:focus-within { border-color: #F08200; box-shadow: 0 0 0 3px rgba(240,130,0,0.1); }
.custom-search input {
    flex: 1;            
    min-width: 0;       
    border: none;
    outline: none;
    padding: 0 12px;
}

/* 搜索按钮：彻底解决图标不居中问题 */
.custom-search button {
    flex: 0 0 40px;     
    width: 40px;        
    height: 100%;
    background: #F08200;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.custom-search button svg { 
    display: block; 
    margin: 0 auto; 
    width: 20px;
    height: 20px;
}

/* 高清 SVG 语言切换样式 */
.custom-lang-switcher { position: relative; cursor: pointer; }
.current-lang-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #EEE; border-radius: 6px; }
.current-lang-btn .flag-icon { display: flex; align-items: center; }
.lang-dropdown-list { 
    position: absolute; top: 100%; right: 0; background: #FFF; min-width: 160px; 
    list-style: none; padding: 8px 0; margin: 10px 0 0 0; box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s; z-index: 1000; 
}
.custom-lang-switcher:hover .lang-dropdown-list { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown-list li a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: #444; text-decoration: none; font-size: 14px; }
.lang-dropdown-list li a:hover { background: #FDF4E9; color: #F08200; }