* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* 导航栏样式 */
.header {
    background-color: #0b2b4b;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
    height: 64px;
    /* 固定高度 */
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0 15px;
    line-height: 64px;
    /* 与header高度一致 */
    transition: background-color 0.3s;
    white-space: nowrap;
    /* 防止文字换行 */
}

.nav-item .active{
    color: #000 !important;
}
.nav-link:hover {
    color:#007aff !important;
}

/* 下拉菜单样式 */
.has-dropdown .dropdown {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    left: 0;
    top: 65px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 24px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: top center;
    overflow: hidden;
    /* 防止内容溢出 */
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-content {
    margin: 0 auto;
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    /* 三等分 */
    gap: 24px;
    /* 列间距 */
    padding: 0 20px;
}

.dropdown-column {
    padding: 0 12px;
    /* 分隔线 */
}

.dropdown-column:last-child {
    border-right: none;
    /* 最后一列不显示分隔线 */
}

.column-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    /* 底部强调线 */
}

.product-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 8px;
    transition: background-color 0.2s, transform 0.2s;
    border-radius: 4px;
    cursor: pointer;
}


.product-item:hover {
    color: #5b96f0;
    transform: translateX(4px);
    /* 悬停微动画 */
}

.product-item:hover h4 {
    color: #5b96f0 !important;
}

.product-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 4px;
    background-color: #f9f9f9;
    padding: 4px;
}

.product-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.product-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.hot-tag {
    background-color: #ff5722;
    color: #fff;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

.new-tag {
    background-color: #009688;
    color: #fff;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

.consult-btn {
    display: inline-block;
    background-color: #007aff;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 20px;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.consult-btn:hover {
    background-color: #005ce6;
    transform: translateY(-1px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px 0;
        height: auto;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        margin: 5px;
    }

    .nav-link {
        padding: 8px 12px;
        line-height: normal;
        font-size: 14px;
    }

    .has-dropdown .dropdown {
        display: none;
        /* 移动端简化处理 */
    }

    .consult-btn {
        display: none;
    }
}

/* 中等屏幕适配 */
@media (max-width: 1024px) {
    .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
        /* 中等屏幕显示2列 */
    }

    .dropdown-column:nth-child(2) {
        border-right: none;
        /* 第二列不显示分隔线 */
    }
}

/* 小屏幕适配 */
@media (max-width: 600px) {
    .dropdown-content {
        grid-template-columns: 1fr;
        /* 小屏幕显示1列 */
    }

    .dropdown-column {
        border-right: none;
        /* 所有列不显示分隔线 */
        border-bottom: 1px solid #eee;
        /* 改为底部分隔线 */
        padding-bottom: 16px;
    }

    .dropdown-column:last-child {
        border-bottom: none;
    }
}

.header .nav .nav-list>li>a::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 80px;
    height: 2px;
    background: #3183e7;
    transition: 0.3s;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 9999
}

.header .nav .nav-list>li>a::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    border: 5px solid transparent;
    border-top: 5px solid #3183e7;
    transition: 0.3s;
    margin-left: -5px;
    opacity: 0;
    z-index: 9999
}

.header .nav .nav-list>li:hover>a::before,
.header .nav .nav-list>li:hover>a::after {
    opacity: 1;
}

/* 图片悬停放大效果 */
.img-container img {
    width: 100%;
    /* 图片宽度充满容器 */
    height: 100%;
    /* 图片高度充满容器 */
    object-fit: contain;
    /* 保持图片比例，完整显示在容器内 */
    transition: transform 0.3s ease;
    /* 平滑过渡动画 */
    transform-origin: center center;
    /* 以中心为原点缩放 */
}

/* 图片悬停放大效果 */
.product-item img {
    transition: transform 0.3s ease;
    /* 平滑过渡动画 */
    transform-origin: center center;
    /* 以图片中心为缩放原点 */
}

.product-item:hover img {
    transform: scale(1.15);
    /* 放大15%，可根据需要调整数值 */
}

.img-container {
    width: 220px;
    /* 与原图片宽度一致 */
    height: 80px;
    /* 与原图片高度一致 */
    overflow: hidden;
    /* 超出容器的部分隐藏 */
    border-radius: 4px;
    /* 保持与图片一致的圆角 */
    background-color: #f9f9f9;
    /* 与原图片背景色一致 */
    padding: 4px;
    /* 与原图片内边距一致 */
    flex-shrink: 0;
    /* 防止容器被压缩 */
}

/* 左侧菜单样式 */
 .left-menu {
     width: 200px;
     background-color: #fff;
 }
 .nav2{
    width: 1200px;
    margin: 0 auto;
 }

 .left-menu ul {
     list-style: none;
 }

 .left-menu li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 200px;
    height: 44px;
    overflow: hidden;
    white-space: nowrap;
    line-height: 20px;
    color: rgba(0, 0, 0, .85);
    font-size: 14px;
 } 

 .left-menu li:hover {
     background-color: #e0e0e0;
     border-radius: 4px;
 }

 .left-menu li.active {
     background-color: #d0d0d0;
 }

 /* 右侧内容容器样式 */
 .right-content {
     flex: 1;
     margin-left: 20px;
     width: 1000px;
 }

 /* 右侧每个内容区域样式，初始隐藏，设置淡入淡出过渡 */
 .content-item {
     width: 100%;
     display: none;
     opacity: 0;
     transition: opacity 0.5s ease;
 }

 .content-item.active {
     display: flex;
     flex-direction: row;
     opacity: 0;
     animation: fadeIn 0.5s ease 0.2s forwards;
 }
 

 .content-item{
    display: flex;
    flex-direction: row;
 }
 .content-child{
    width: 33%;
 }
 .content-child p{
    line-height: 42px;
    font-size: 14px;
    cursor: pointer;
    color: #000000;
 }
 
 .content-child p:hover{
    text-decoration: underline;
 }
     
  .content-child h5{
    font-size: 16px;
    line-height: 42px;
    cursor: pointer;
    font-weight: 600;
 }
    
 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }