.ei-header-top {
    height: 6px;
    background: linear-gradient(90deg, #c8161d, #ff000b);
}

.ei-header {
    background: #fff;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);*/
    position: relative;
    z-index: 100;
}

.mauto2 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 改为左对齐 */
    flex-wrap: nowrap; /* 整体禁止换行 */
    position: relative;
}

/* Logo 区域 */
h1 {
    margin: 0;
    padding: 12px 0;
    width: 218px;
    flex-shrink: 0;
}

h1 a {
    display: block;
    width: 100%;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 60"><rect width="200" height="60" fill="%231a4d8c" rx="4"/><text x="20" y="38" fill="white" font-size="24" font-weight="bold">LOGO</text><text x="100" y="38" fill="%23ffcc00" font-size="14">企业品牌</text></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    text-indent: -9999px;
}

/* 如果原图不存在则用纯色占位，实际生产可替换路径 */
@media (max-width: 768px) {
    h1 a {
        background-size: contain;
        width: 140px;
    }
}

/* home-icon 样式 */
.home-icon {
    margin-left: 8px;
    flex-shrink: 0;
}

.home-icon a {
    display: block;
    width: 32px;
    height: 32px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M12 3L2 9l2 2h2v8h6v-6h4v6h6v-8h2l-2-2-8-6z"/></svg>') no-repeat center;
    background-size: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.home-icon a:hover {
    opacity: 1;
}

/* 导航核心样式 - 桌面 flex */
.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* 改为 nowrap，禁止换行 */
    /* 移除 flex: 1，让导航根据内容自适应宽度 */
    flex-shrink: 0; /* 防止被压缩 */
    margin-right: auto; /* 让导航左侧对齐，右侧留白给搜索和语言 */
}

.nav .li {
    position: relative;
    margin: 0 2px;
}

.nav .li > .link {
    display: inline-block;
    padding: 0 14px; /* 从18px适当减小到14px */
    line-height: 76px;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap; /* 文字禁止换行 */
}

.nav .li>.link:hover {
    color: #f00;
}

.nav .li>.link .rac {
    display: inline-block;
    margin-left: 4px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #999;
    vertical-align: middle;
    transition: transform 0.2s;
}

.nav .li:hover>.link .rac {
    transform: rotate(180deg);
    border-top-color: #f00;
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 200;
    padding: 8px 0;
    border-top: 2px solid #f00;
}

.nav .li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

.dropdown .ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown .ul .li {
    margin: 0;
    display: block;
}

.dropdown .ul .li a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown .ul .li a:hover {
    background: #f0f7ff;
    color: #f00;
}

/* 确保搜索和语言区域不被压缩 */
.search-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-right: 16px;
    flex-shrink: 0; /* 禁止压缩 */
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 40px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.search-form:hover,
.search-form:focus-within {
    border-color: #333;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(26, 77, 140, 0.1);
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 14px;
    width: 160px;
    outline: none;
    border-radius: 40px 0 0 40px;
    color: #1e293b;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 12px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 40px 40px 0;
    transition: transform 0.1s;
}

.search-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #4b5563;
    stroke-width: 2;
    transition: stroke 0.2s;
}

.search-btn:hover svg {
    stroke: #f00;
}

/* 移动端样式调整 */
.language {
   .language {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
    flex-shrink: 0; /* 禁止压缩 */
}

}

.language a {
    text-decoration: none;
    font-size: 14px;
    color: #f00;
    font-weight: 600;
    padding: 4px 6px;
    transition: all 0.2s;
}

.language a.active {
    color: #333;
    border-bottom: 2px solid #333;
}

.language a:hover {
    color: #333;
}

/* 移动端 icon 隐藏桌面显示 */
.nav-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23333" viewBox="0 0 24 24"><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>') no-repeat center;
    background-size: 24px;
    margin-left: 10px;
}

.visible-lg-block {
    display: block;
}

@media (max-width: 992px) {
    .visible-lg-block {
        display: none;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 300;
        border-top: 1px solid #eee;
    }

    .nav.active {
        display: flex;
    }

    .nav .li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav .li>.link {
        display: block;
        line-height: 50px;
        padding: 0 20px;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        border-top: none;
        background: #fafcff;
        display: none;
    }

    .nav .li:hover .dropdown {
        display: block;
    }

    .dropdown .ul .li a {
        padding-left: 40px;
    }

    .nav-icon {
        display: block;
    }

    .search-wrapper {
        margin-left: auto;
        margin-right: 10px;
    }

    .search-input {
        width: 120px;
    }
}

@media (max-width: 768px) {
    .mauto2 {
        padding: 0 12px;
    }

    .search-input {
        width: 100px;
        font-size: 13px;
    }

    .language a {
        font-size: 12px;
    }
}

@media (max-width: 580px) {
    .search-wrapper {
        margin-left: 8px;
        margin-right: 6px;
    }

    .search-input {
        width: 80px;
        padding: 6px 8px;
    }

    .search-btn {
        padding-right: 8px;
    }
}

/* 简单清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 保持原有样式整体感 */
.ei-header .mauto2 {
    min-height: 156px;
}


/* 内页位置样式 */
/*********************/
.nav-wrapper {
    width: 100%;
    min-height: 40px;
    background-color: #f7f7f7;
}

.nav-menu {
    width: 1200px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    min-height: 40px;
}
@media (max-width: 992px) {
.nav-menu {
    padding: 0 30px;
}
}
@media (max-width: 768px) {
.nav-menu {
    padding: 0 30px;
}
}

.nav-menu li {
    margin: 0;
    padding: 0;
    line-height: 40px; /* 设置行高等于容器高度 */
    color: #555;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

/* 在每个 li 后面添加 /，最后一个除外 */
.nav-menu li:not(:last-child)::after {
    content: "/";
    display: inline-block;
    margin: 0 8px;
    color: #999;
    font-size: 12px;
}

.nav-menu li a {
    display: inline-block;
    padding: 12px 0;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #c8161d;
}
.nav-menu li:not(:last-child) {
    margin-right: 24px;
}

.nav-menu li:not(:last-child)::after {
    content: "/";
    margin-left: 24px;
    color: #ccc;
    font-size: 14px;
}
