/* 基础样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul li{
    list-style: none;
}
a{
    text-decoration: none;
    color: #cdd7e4;
}
body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
.h2{
    text-align: center;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;

}

/* 导航栏 */
.navbar {
    background: #0750bdda;
    /* background: linear-gradient(-15deg, rgba(0, 53, 199, 0.842) 0%, rgba(61, 242, 255, 0.8) 100%) !important; */
    /*background: linear-gradient(-15deg, rgba(0, 53, 199, 0.842) 0%, rgba(0,229,255, 1) 100%) !important;*/
    background: linear-gradient(-37deg, rgba(0, 53, 199, 0.842) 54%, rgb(0 161 255 / 90%) 0%,rgb(255 255 255) 86%) !important;
    padding: 1rem 0;
    position: fixed; /* 固定定位 */
    top: 0;

    backdrop-filter:blur(5px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    z-index: 1000; /* 确保在最上层 */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: relative; /* 为子菜单绝对定位提供参考 */
}

.logo {
    color: #64ffda;
    font-size: 1.5rem;
    font-weight: bold;
}
.logo img{
    height: 50px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.desktop-search {
    position: relative;
    margin-right: 20px;
}

/* 添加移动端搜索样式 */
.mobile-search {
    display: none;
    position: relative;
    margin-right: -15px;
}

.search-icon {
    cursor: pointer;
    padding: 8px;
}

.search-box {
    display: none;
    position: absolute;
    width: 1000px; /* Desktop width */
    top: 100%;
    backdrop-filter: blur(20px)!important;
    right: 0;
    transition: 1s ease;
    background: #0260cae5;
    padding: 70px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 10px;
    z-index: 100000;
}

.search-box input {
    width: 220px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.search-box.active {
    display: block;
}


.nav-links li {
    position: relative; /* 为子菜单定位 */
}

.submenu {
    display: none;
    position: absolute;
    top: 100%; /* 直接贴紧父级底部 */
    left: 50%; /* 相对于父级左移50% */
    transform: translateX(-50%); /* 自身左移50%宽度实现居中 */
    background: #0260cae5;
    min-width: 180px;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(10,25,47,0.2);
    transition: all 0.3s ease;
    margin-top: 8px; /* 增加间隙避免鼠标断层 */
    /* 新增顶部箭头 */
    &::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #0260cae5; /* 与submenu背景色一致 */
    }
}

.submenu li {
    margin: 0.3rem 0;
}

.submenu li a {
    color: #e6f1ff;
    font-size: 0.95rem;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s ease;
    text-align: center; /* 新增居中对齐 */
}

.submenu li a:hover {
    color: #64ffda;
    /* background: #2481ece5; */
    transform: translateY(-2px); /* 悬停微移增强交互 */
}

/* 为父级菜单项增加底部内边距扩大悬停区域 */
.has-submenu > a {
    padding-bottom: 20px; /* 扩大父级热区底部范围 */
    position: relative; /* 为伪元素定位 */
}

.has-submenu > a::after {
    content: '';
    position: absolute;
    bottom: -10px; /* 向下延伸热区 */
    left: 0;
    width: 100%;
    height: 10px; /* 增加10px透明热区 */
}

.submenu li {
    margin: 0.5rem 0;
}
.industries-grid{
    text-align: center!important;
}
.industries-grid h3{
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 25px;
    text-align: center !important;
    font-weight: bold;
    color: #fff !important;
}
.industries-grid p{
    font-size: 16px;
    line-height: 1.8;
    color: #bdbdbd!important;
}
.language-menu{
    display: none;
    list-style: none;
    position: absolute;
    width: 200px;
    top: 70%;
    color: #fff;
   padding: 15px;
    transform: translateX(-50%);
    background: #0260cae5;
    border-radius: 8px;
}
.language-menu a{
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
}
.has-submenu:hover .submenu,
/* 将原来的悬停触发修改为仅子菜单使用 */
.has-submenu:hover .submenu {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 添加新的激活状态样式 */
.language-switch.active .language-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}
.industry-item{
    height: 450px;
    margin-bottom: 2px;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-links a {
    color: #e6f1ff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #64ffda;
}

/* Banner幻灯图 */
.banner {
    height: 450px;
    position: relative;
    overflow: hidden;
    /*margin-top: 80px; !* 导航栏高度，避免内容被遮挡 *!*/
}

.slider {
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

/* 产品分类 */
.product-categories {
    padding: 4rem 0;
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-item {
    background: #0a192f;
    color: #64ffda;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

/* 公司简介 */
.company-intro {
    padding: 4rem 0;
}
.section-title{
    text-align: center;
}
/* 公司简介两列布局 */
.company-flex {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1.5rem;
}

.company-image {
    flex: 1;
    min-width: 300px; /* 确保小屏幕下图片不会过窄 */
}

.company-text {
    flex: 1;
}

@media (max-width: 768px) {
    .search-box {
        width: 300px; /* Mobile-friendly width */
        right: 0px; /* Adjust position to fit mobile screen */
        padding: 20px; /* Reduce padding for mobile */
    }

    .submenu {
        display: none !important;
    }
    .company-flex {
        flex-direction: column;
    }
    .company-image {
        min-width: auto;
    }
    .logo img{
        height: auto;
    }

    .desktop-search {
        display: none;
    }

    .mobile-search {
        display: block;
    }

    .language-switch {
        display: block !important;
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
    }
}
/* 优势图片 */
.advantages {
    padding: 4rem 0;
    background: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.1rem;
    margin-top: 2rem;
}

.advantage-item {
    text-align: center;
}

.advantage-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.application-industries h2{
    text-align: center;
}

.industry-item {
    position: relative; /* 为伪元素定位 */
    overflow: hidden; /* 防止模糊溢出 */
    transition: all 0.3s ease;
}

.industry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 暗色遮罩 */
    filter: blur(2px); /* 模糊效果 */
    z-index: 1; /* 位于背景图上方 */
    transition: all 0.3s ease;
}

.industry-item > * {
    position: relative;
    z-index: 2; /* 内容位于遮罩上方 */
}

.industry-item:hover::before {
    background: rgba(0, 0, 0, 0); /* 悬停时移除暗色遮罩 */
    filter: blur(0); /* 悬停时取消模糊 */
}

.industry-item:hover {
    filter: brightness(1.1); /* 悬停时亮度提高 */
}
.view-detail-btn{
    text-align: center;
}
/* 新闻资讯 */
.news {
    /*padding: 4rem 0;*/
    padding-top: 2rem;
    background: #f8f9fa;
}

.news-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.news-left {
    flex: 0 0 40%;
    max-width: 40%;
}

.news-left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-right {
    flex: 1;
}

/* 新闻链接样式 */
.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 增强的新闻项悬停效果 */
.news-item {
    /* background: #f3f3f3; */
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 平滑过渡 */
    border-left: 4px solid transparent; /* 左侧透明边框 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 轻微阴影 */
}

.news-item:hover {
    background: #ffffff;
    box-shadow: 0 12px 20px rgba(18, 124, 231, 0.18);
    transform: translateY(-5px) scale(1.01); /* 上浮并轻微放大 */
    border-left: 4px solid #127ce7; /* 左侧蓝色边框 */
}

/* 标题悬停效果 */
.news-item h3 {
    transition: color 0.3s ease;
    margin-bottom: 0.8rem;
}
.news-item h3 a{
    color: #127ce7;;
    text-decoration: none;
}

.news-item h3 a:hover{
    color: #127ce7 !important; /* 标题变色 */
}

/* 日期样式优化 */
.news-date {
    display: inline-block;
    margin-top: 1rem;
    color: #888;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-item:hover .news-date {
    color: #127ce7;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
    }
    .news-left {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .logo img{
        width: 65%;
        /* display: none; */
    }

}
/* 页脚美化样式 */
.footer {
    background: #0a192f url("../images/footbg.jpg") no-repeat center top;
    background-size: cover;
    color: #befbff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

/* 半透明遮罩增强文字可读性 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-nav h3,
.company-info h3,
.footer-social h3 {
    color: #64ffda;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-nav h3::after,
.company-info h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #64ffda;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: #a8b2d1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: #64ffda;
    transform: translateX(5px);
}

.company-info p {
    color: #a8b2d1;
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    color: #8892b0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav h3::after,
    .company-info h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }

    .footer-nav ul {
        display: inline-block;
        text-align: left;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 隐藏默认导航链接 */

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        max-width: 1200px; /* 限制最大宽度与容器一致 */
        margin: 0 auto; /* 水平居中 */
    }

    .nav-links .language-switch {
        display: none !important;
    }

    /* 显示激活状态 */
    .nav-links.active {
        display: flex;
    }

    /* 汉堡菜单按钮 */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #64ffda;
        font-size: 1.5rem;
        cursor: pointer;
    }

    @media (min-width: 769px) {
        .mobile-menu-btn {
            display: none !important;
        }
    }

    .banner {
        height: 250px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}
/* 二维码样式 */
.qrcode-container {
    margin-top: 1.5rem;
    text-align: center;
}

.footer-qrcode {
    width: 120px;
    height: 120px;
    /*border: 4px solid rgba(255, 255, 255, 0.1);*/
    border-radius: 8px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.8rem;
}

.qrcode-text {
    color: #a8b2d1;
    font-size: 0.9rem;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-qrcode {
        width: 100px;
        height: 100px;
    }
}
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}
