* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    color: #333;
    background-color: #fff;
    /*background-color: #f5f9fc;*/
}

/* 顶部导航栏 - 改为蓝色 */
.top-bar {
    background-color: #1a56a8;
    color: white;
    padding: 0 10%;
    height: 95px;
    display: flex;
    justify-content: center; /* 改为居中 */
    align-items: center;
}

/* 新增的容器样式 */
.top-bar-container {
    width: 100%;
    max-width: 1200px; /* 与主要内容区宽度一致 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    padding-top: 10px;
    display: flex;
    align-items: center;
    height: 100%; /* 确保logo容器高度与顶部导航栏一致 */
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 600px;
    object-fit: contain;
}

.search-language {
    margin-top: 30px;
    margin-right: 5px;
    display: flex;
    align-items: center;
}

/* 购物车容器 - 垂直排列 */
.cart-container {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: center; /* 水平居中 */
    gap: -10px; /* 图标和文字的间距 */
}

/* 购物车图标样式 */
.cart-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s; /* 悬停动画效果 */
}

/* 悬停效果（可选） */
.cart-icon:hover img {
    transform: scale(1.1); /* 悬停时轻微放大 */
}

.cart-icon {
    font-size: 20px; /* 图标大小 */
    color: white; /* 图标颜色 */
    cursor: pointer;
}

.search-box {
    position: relative;
    margin-right: 20px;
}

.search-box input {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    width: 180px;
}

.search-box::before {
    content: "请输入搜索关键字";
    position: absolute;
    left: 10px;
    top: 5px;
    color: #999;
    pointer-events: none;
}

.language-switch {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* 主导航 - 改为深蓝色 */
.main-nav {
    /*background-color: #0d47a1;*/
    background-color: #1a56a8; /* 修改为与顶部导航栏一致 */
    height: 50px;
    display: flex;
    justify-content: center;
}

.nav-items {
    max-width: 1200px; /* 最大宽度限制 */
    display: flex;
    width: 100%;
    height: 100%;
}

.nav-item {
    width: 150px;
    color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* 新增：水平居中 */
    text-align: center; /* 新增：文字居中 */
    cursor: pointer;
    position: relative;
    font-weight: bold; /* 添加这行使字体加粗 */
    font-size: 15px;
}

.nav-item:hover {
    background-color: #1565c0;
}

/* 新闻动态子菜单 */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a56a8;
    width: 150px;
    z-index: 100;
}

.nav-item:hover .submenu {
    display: block;
}

.submenu-item {
    padding: 10px 20px;
    color: white;
    font-size: 15px;
    text-align: center; /* 新增：文字居中 */
}

.submenu-item:hover {
    background-color: #0d47a1;
}

   .business-link {
            text-decoration: none; /* 去除链接下划线 */
            color: white; /* 继承父元素颜色 */
        }