/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;

    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 防止出现水平滚动条 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
    margin-right: 30px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease;
    text-align: center;
}

.nav-link:hover {
    color: #007bff;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* 下拉菜单触发按钮 */
.dropdown-trigger {
    padding: 10px 15px;
    border: none;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-trigger:hover {
    background-color: #f5f5f5;
}

.dropdown-trigger::after {
    content: "▼";
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
}

/* 下拉菜单主体 */
.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

/* 菜单显示动画 */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 菜单顶部阴影效果 */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
}

/* 菜单项 */
.dropdown-content a {
    color: #333333;
    padding: 14px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-size: 18px;
    border-left: 3px solid transparent;
}

.dropdown-content span {
    color: #333333;
    padding: 14px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-size: 18px;
    border-left: 3px solid transparent;
}

/* 菜单项图标 */
.dropdown-content a i {
    width: 16px;
    text-align: center;
}

/* 菜单项悬停效果 */
.dropdown-content a:hover {
    background: #f8fafc;
    color: #165DFF;
    padding-left: 25px;
}


.contact-dropdown-content {
    left: auto;
    right: 0;
    height: auto; /* 移除固定高度300px，让高度由内容决定 */
    min-width: 400px; /* 保证最小宽度，避免过窄 */
    max-width: 90vw; /*最大宽度不超过屏幕90%，避免溢出 */
    padding: 10px 15px; /* 增加内边距，让内容更舒展 */
    overflow: visible; /* 确保内容不被隐藏 */
}

/* 联系信息项样式 */
.contact-dropdown-content .submenu .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* 项间距 */
}

/* 图标样式 */
.contact-dropdown-content .submenu .contact-item i {
    margin-right: 10px; /* 图标与文本间距 */
    color: #337ab7; /* 图标颜色 */
    width: 18px; /* 图标宽度统一 */
    text-align: center;
}

/* 鼠标悬停效果 */
.contact-dropdown-content .submenu .contact-item:hover {
    color: #337ab7; /* 悬停时文本颜色 */
    transform: translateX(2px); /* 悬停时轻微右移 */
    transition: all 0.2s ease;
}

/* 分隔线 */
.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 5px 0;
}

/* 菜单底部提示 */
.dropdown-footer {
    padding: 8px 15px;
    background-color: #fafafa;
    color: #666666;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

/* 产品应用领域样式 */
.product-applications {
    padding: 80px 20px;
    background: #fff;
}

.product-applications .profile-header {
    text-align: center;
    margin-bottom: 60px;
}

.application-container {
    max-width: 1500px;
    height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-item {
    width: 410px;
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.application-item .item-icon {
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}



.application-item .item-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.application-item .item-content p {
    color: #666;
    line-height: 1.6;
}

/* 语言切换样式 */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(240, 244, 250, 0.7);
    padding: 8px 15px;
    border-radius: 24px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
/* 鼠标悬停时的容器效果 */
.language-switch:hover {
    background-color: rgba(240, 244, 250, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
/* 语言选项 */
.language-switch a {
    width: 80px;
    position: relative;
    color: #555555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* 语言图标 */
.language-switch a::before {
    content: "";
    width: 18px;
    height: 18px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* 中文图标 */
.language-switch a[href*="/index.html"]::before {
    background-image: url("https://picsum.photos/id/237/20/20"); /* 替换为实际国旗图标 */
}
/* 英文图标 */
.language-switch a[href*="/en/"]::before {
    background-image: url("https://picsum.photos/id/238/20/20"); /* 替换为实际国旗图标 */
}
/* 鼠标悬停效果 */
.language-switch a:hover {
    color: #1f60f7;
    background-color: rgba(22, 93, 255, 0.05);
    transform: translateY(-1px);
}
/* 激活状态 */
.language-switch a.active {
    color: #ffffff;
    background-color: #356cf7;
    box-shadow: 0 3px 8px rgba(22, 93, 255, 0.2);
}
/* 激活状态的图标效果 */
.language-switch a.active::before {
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}
/* 切换动画 */
.language-switch a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #165DFF;
    border-radius: 2px;
    transition: width 0.3s ease, left 0.3s ease;
}
.language-switch a.active::after {
    left: 12px;
    width: calc(100% - 24px);
}
/* 小屏幕适配 */
@media (max-width: 768px) {
    .language-switch {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .language-switch a {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .language-switch a::before {
        width: 16px;
        height: 16px;
    }
}
    

/* 轮播图样式 */
.slider {
    /* margin-top: 70px; */
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 产品展示样式 */
.products {
    padding: 80px 20px;
    background:white;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url('images/pattern.png') repeat; */
    opacity: 0.05;
    pointer-events: none;
}

.profile-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(240, 244, 250, 0.7);
    padding: 8px 15px;
    border-radius: 24px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-left: 15px;
    width: 80px; /* 设置搜索框宽度为 80px */
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    color: #555555;
    font-size: 15px;
    font-weight: 500;
    width: 60px; 
    padding: 0; 
}

.search-box button {
    border: none;
    background: transparent;
    color: #555555;
    font-size: 15px;
    cursor: pointer;
    margin-left: 15px; /* 去除按钮左边的间距 */
    padding: 0; /* 去除按钮的内边距 */
}

.search-box:hover {
    background-color: rgba(240, 244, 250, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-slider {
    max-width: 1500px;
    height: fit-content;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: white;
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 20px;
}

.product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.product-slide.active .product-content {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    height: 600px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.product-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,123,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover::before {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 600px;
    object-fit: contain; /* 完全显示图片 */
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.1);
}

.product-details {
    height: 600px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-details h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.product-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #007bff;
}

.product-description {
    margin-bottom: 30px;
}

.product-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    color: #555;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    transition: transform 0.3s ease;
}

.product-features li:hover {
    transform: translateX(5px);
}

.product-features li::before {
    content: "\f058"; /* Font Awesome对勾图标 */
    font-family: "Font Awesome 6 Free";
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
    font-size: 18px;
}

.learn-more:hover {
    background-color: #5fa5f0;
    color: white;
}

.product-details:hover .learn-more {
    background-color: #5fa5f0; 
    color: white;             
    border-color: #5fa5f0;    
}

.learn-more {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent; 
    color: #5fa5f0;                
    border: 2px solid #5fa5f0;     
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;     
}

.product-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.product-prev,
.product-next {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    color: #5f9bf5;
}

.product-prev:hover,
.product-next:hover {
    transform: scale(1.1);
}

.product-counter {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    background: white;
    padding: 8px 20px;
    border-radius: 20px;
}

.current-product {
    color: #4498f1;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
    }

    .product-image {
        transform: none;
    }

    .product-image:hover {
        transform: none;
    }

    .product-image img {
        height: auto;
    }

    .product-details {
        padding: 20px;
    }

    .product-details h3 {
        font-size: 24px;
    }
}



.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.image-gallery img {
  width: 90%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.image-gallery img:hover {
  transform: scale(1.03);
}

/* 页脚样式 */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #999;
    font-size: 16px;
}

.footer-contact h3,
.footer-qrcode h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-qrcode h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #007bff;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;

    padding: 8px 0; /* 增加项间距，避免拥挤 */
    width: 100%; /* 占满容器宽度 */
}
.contact-item span[data-key="address"] {
    white-space: normal; /* 允许自动换行 */
    overflow-wrap: break-word; /* 长文本拆分 */
    flex: 1; /* 占据剩余空间，不被图标挤压 */
    min-width: 0; /* 允许文本区域适应容器宽度 */
}


.contact-item i {
    color: #007bff;
    font-size: 16px;
}

.qrcode-container {
    display: flex;
    gap: 20px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    padding: 5px;
}

.qrcode-item p {
    color: #999;
    font-size: 12px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #666;
    font-size: 16px;
}

.footer-bottom span {
    color: #666;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-dropdown-content {
        min-width: 250px; /* 小屏幕最小宽度适配 */
        right: 0;
        left: 0; /* 让容器左右贴边，利用更多空间 */
        margin: 0 10px; /* 留少量边距，避免贴紧屏幕 */
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .qrcode-container {
        justify-content: center;
    }
}

/* 公司概况样式 */
.company-profile {
    padding: 80px 20px;
    background: #fff;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 50px;
}


.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.profile-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.05);
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.item-icon {
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-number {
    transition: all 0.3s ease;
}

.stat-icon {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}v


/* 产品应用领域样式 */
.product-applications {
    padding: 80px 20px;
    background: #fff;
}

.product-applications .profile-header {
    text-align: center;
    margin-bottom: 60px;
}


.application-item {
    display: flex;
    flex-direction: column; /* 垂直排列子元素 */
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    align-items: center; /* 新增：使子元素水平居中 */
    text-align: center; /* 新增：使文本内容居中 */
}

.item-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.item-content p {
    color: #666;
    line-height: 1.6;
}

.item-image {
    border-radius: 12px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-image:hover img {
    transform: scale(1.05);
}


.item-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.item-content p {
    color: #666;
    line-height: 1.6;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 16px;
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

    .profile-image {
        height: 300px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
} 

.horizontal-menu {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 10px 20px;
}
.dropdown-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;

    
    /* &::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    scrollbar-width: none;
    -ms-overflow-style: none;  */
}

.dropdown-group > a {
    font-weight: bold;
    margin-bottom: 5px;
}
.submenu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 8px 16px;
    min-width: 120px; /* 保留最小宽度 */
    max-width: 50vw; /* 关键：用视口宽度限制，避免超出屏幕 */
    /* 可选：如果需要固定最大宽度，可改为 max-width: 300px（根据实际场景调整） */
    z-index: 1001;
    flex-direction: column;
    gap: 6px;
    white-space: normal; /* 允许自动换行 */
    word-break: break-all; /* 强制长文本拆分（解决无空格的长字符串） */
}
.dropdown-group:hover .submenu {
    display: flex;
}
.horizontal-menu .dropdown-group {
    margin: 0 10px;
    /* 设置导航栏下拉菜单的宽度 */
    width: 400px; 
    position: absolute; 
}
.horizontal-menu .dropdown-group > a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.horizontal-menu .dropdown-group > a:hover {
    color: #007bff;
}
.single-row-menu {
    min-width: 320px;
    padding: 10px 20px;
}
.single-row-menu .dropdown-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 10px;
}

.single-row-menu .dropdown-row a {
    white-space: nowrap;
    padding: 8px 12px;
}

.dropdown-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 6px;
}
.dropdown-row a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.dropdown-row a:hover {
    color: #007bff;
}

.horizontal-menu {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 10px 20px;
}
.submenu {
    display: flex; 
    position: static; 
    background-color: transparent; 
    box-shadow: none; 
    border-radius: 0; 
    padding: 0; 
    min-width: auto; 
    z-index: auto; 
    flex-direction: column;
    gap: 0px;
    white-space: nowrap;
}
.horizontal-menu .dropdown-group {
    margin: 0 10px;
    position: static; 
}
.horizontal-menu .dropdown-group > a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.horizontal-menu .dropdown-group > a:hover {
    color: #007bff;
}


/* 手机端响应式样式 */
@media (max-width: 992px) {
    /* 导航栏调整 */
    .nav-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
        font-size: 18px;
    }
    
    /* 下拉菜单调整 */
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .horizontal-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .dropdown-group {
        width: 100%;
        height: auto;
        padding: 0;
    }
    
    .submenu {
        position: static;
        display: none;
        padding: 0;
        background-color: #f5f5f5;
    }
    
    .dropdown-group.active .submenu {
        display: block;
    }
    
    .dropdown-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* 搜索框和语言切换 */
    .search-box, .language-switch {
        margin: 15px 0;
        width: 100%;
        justify-content: center;
    }
    
    /* 移动菜单按钮 */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
    }
    
    /* 轮播图调整 */
    .slider {
        height: 60vh;
        margin-top: 60px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    /* 公司概况调整 */
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    /* 产品应用领域调整 */
    .application-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .application-item {
        width: 100%;
        flex-direction: column;
    }
    
    .item-image img {
        height: 300px;
    }
    
    /* 产品展示调整 */
    .product-content {
        grid-template-columns: 1fr;
    }
    
    .product-image, .product-image img {
        height: auto;
    }
    
    .product-details {
        height: auto;
    }
}

/* 更小的屏幕 */
@media (max-width: 576px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* 移动菜单按钮 - 默认隐藏 */
.mobile-menu-btn {
    display: none;
}