.navbar {
    height: 100px;
    /* width: 100%; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background-color: transparent !important;
    transition: background-color 0.3s;
    /* 平滑过渡效果 */
}

.navbar {
    background-color: rgba(0, 0, 0, 0) !important;
    /* 完全透明 */
    transition: all 0.4s ease;
    /* 过渡动画 */
    padding: 25px 0;
    /* 透明状态下增加内边距 */
}

.navbar-brand,
.navbar-nav .nav-link {
    color: white !important;
    /* 透明背景建议使用浅色文字 */
}

.navbar-brand,
.navbar-nav .nav-link:hover {
    color: #006dc3 !important;
    /* 透明背景建议使用浅色文字 */
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    /* 移动端菜单按钮颜色 */
}

/* ----------------------------
   滚动后的实色样式
  ---------------------------- */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8) !important;
    /* 自定义实色背景 */
    padding: 10px 0;
    /* 减小内边距 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 添加阴影 */
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link-text {
    color: #fff !important;
    /* 深色文字 */
}

.navbar.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.5);
    /* 移动端按钮颜色变化 */
}


.header-nav .nav-item .nav-link.active {
    position: relative;
    color: #006dc3 !important;
}

/* .navbar-nav .nav-item .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 8px;
    width: calc(100% - 16px);
    height: 2px;
    background: linear-gradient(to right,
            #006dc3,
            rgb(233, 106, 1, 0));
    transform: scaleX(1);
    transition: transform 0.3s ease;
} */
.header-nav .nav-item {
    position: relative;
    margin: 20px;
    /* padding: 10px 15px; */
}

.header-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right,
            #006dc3,
            rgb(233, 106, 1, 0));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-nav .nav-item:hover::after {
    width: calc(100% - 16px);
}

/* 自定义样式 */
.full-width-dropdown {
    /* position: static; */
}

.dropdown-mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 200;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none;
    /* 默认隐藏 */
}

/* 鼠标悬停显示下拉菜单 */
.header-nav .nav-item.dropdown:hover .dropdown-menu,
.dropdown-mega-menu:hover {
    display: block ;
}

.dropdown-mega-menu {
    position: absolute;
    top: 100%;
    /* 从导航栏底部开始 */
    left: 0;
    width: 100vw;
    /* 全视窗宽度 */
    /* height: 432px; */
    margin-left: calc(-50vw + 50%);
    /* 水平居中技巧 */
    z-index: 1000;
    display: none;
}

.dropdown-menu {
    border-radius: 0;
}
.dropdown-menu .nav-pills .active {
    background-color: rgb(233, 106, 1, 0.12) !important;
    color: #006dc3 !important;
}

.product-tab {
    height: 3rem;
    text-align: start;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.87);
}
.product-tab img {
    vertical-align: bottom;
}

.product-tab:hover {
    /* background-color: rgb(233, 106, 1, 0.12); */
    color: #006dc3;
}

.product-tab-content {
    padding: 15px;
}

.product-tab-content .card-body {
    padding-left: 0px;
}

.product-tab-content .card-title {
    font-size: 0.875rem;
}

.product-card {
    height: 100%;
    transition: transform 0.3s;
    border: none;
}

.product-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
}

.product-card-img {
    height: 150px;
    object-fit: cover;
}

/* 确保下拉箭头可见 */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.form-select-sm {
    border: none;
    background: none;
}

/* 幻灯片 */
/* 覆盖默认的 carousel-caption 定位 */
.carousel-caption {
    position: absolute;
    top: 50%;
    /* 垂直居中起点 */
    left: 15%;
    /* 水平起始位置 */
    transform: translateY(-50%);
    /* 精确垂直居中 */
    text-align: left;
    /* 文字左对齐 */
    width: 45%;
    /* 控制文字区域宽度 */
}

#carouselExampleCaptions .carousel-item:first-of-type .carousel-caption {

    width: 60%;
    /* 控制文字区域宽度 */
}

.carousel-caption h1 {
    font-size: 3.75em;
    /* 标题大小 */
    font-weight: 700;
}

.carousel-caption-first{
    top:15%;
}

.carousel-caption h4 {
    font-size: 2.5rem;
}
.carousel-caption h6 {
    color: rgba(255, 255, 255, 0.54);
    font-size: 1.7em;
}

.carousel-caption h1 span {
    color: #006dc3;
}

.carousel-caption p {
    margin-top: 1.2rem;
    font-size: 1.875rem;
    /* 描述文字大小 */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.87);
}

@media (max-width: 992px) {
    .carousel-caption {
        left: 10%;
        width: 60%;
    }

    .carousel-caption h3 {
        font-size: 2rem;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .carousel-caption {
        left: 5%;
        width: 90%;
        bottom: auto;
        /* 移除默认底部定位 */
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

.newest-product {
    background-color: #f6f6f6;
}

.container h1 {
    font-size: 5rem;
    color: #006dc3;
}

.module-title h3 {
    font-size: 2.375rem;
}

.module-title p {
    color: #999999 !important;
    text-transform: uppercase;
}

.slice-lg {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.slice-lg .product-item {
    /* border: 1px solid #C9CFD5; */
    border-radius: 10px;
}

.feature-carousel {
    padding: 4rem 0;
    background: #f8f9fa;
}

.feature-carousel .container {
    padding: 1rem;
}

.card-wrapper {
    padding: 1.6rem;
    /* 控制卡片间距 */
}

.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .card-img-top {
    transform: scale(1.05);
}


.feature-carousel .title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    /* color: #e06500; */
}

.feature-carousel .subtitle {
    /* color:#ffffff; */
    margin-bottom: 0 !important;
    margin-left: 0.5rem;
}

.feature-carousel .module-title h3 span {
    color: #006dc3 !important;
}

.feature-carousel {
    padding: 4rem 0;
    background: #f8f9fa;
    position: relative;
    overflow: visible;
}

/* 卡片样式 */
.feature-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.feature-carousel .card-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.feature-carousel .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .card-img-top {
    transform: scale(1.08);
}

.feature-carousel .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.feature-carousel .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #212529;
    font-weight: 600;
}

.feature-carousel .card-text {
    color: #6c757d;
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-carousel .card-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #006dc3;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-carousel .card-btn:hover {
    color: #ff7402;
    border-bottom-color: #ff7402;
}

.feature-carousel .card-btn .bi {
    transition: transform 0.3s ease;
}

.feature-carousel .card-btn:hover .bi {
    transform: translateX(3px);
}

/* 底部控制区 */
.feature-carousel .carousel-controls-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    /* margin-top: 3rem; */
    padding: 0 15px;
}

.feature-carousel .carousel-control-bottom {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #495057;
}

.feature-carousel .carousel-control-bottom:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #006dc3;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .feature-carousel .card-img-container {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .feature-carousel .card-img-container {
        padding-top:10px;
        height: 200px;
    }

    .feature-carousel .card-title {
        font-size: 1.1rem;
    }

    .feature-carousel .card-text {
        font-size: 0.9rem;
    }

    .feature-carousel .carousel-controls-container {
        margin-top: 2rem;
    }
}

/* 新闻中心 */
.bg-image {
    background: url(../image/index-news-bg-image.webp) center top no-repeat;
    width: 100%;
    /* height: 100vh; */
    background-size: cover;
}

.news .module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news .title .up-part {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    /* color: #e06500; */
}

.news .subtitle {
    color: #ffffff;
    margin-bottom: 0 !important;
    margin-left: 0.5rem;
}

.news-center-header h3 {
    margin-bottom: 2.5rem;
}

.news .card {
    height: 100%;
    /* border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.news .year {
    color: #999999;
}

.news .card-text {
    font-size: 0.875rem;
}

.news .card:hover {
    background-color: #006dc3;
    color: #ffffff !important;
}

.news .card:hover .year,
.news .card:hover i,
.news .card:hover .card-text {
    color: #ffffff !important;
}

.news .card-img-small {
    height: 200px;
}

.news .left-area .date-box {
    min-width: 80px;
    border-right: 1px solid #dee2e6;
}

.news .date-box {
    font-family: 'Poppins-Bold';
}

.news .date-box .year {
    font-family: 'Poppins-Regular';
}

.news .card-body {
    border-right: 1px solid #dee2e6;
}

.news .card-body i {
    color: #006dc3;
}

.news .second-news {
    color: rgba(0, 0, 0, 0.54);
}

@media (max-width: 992px) {

    .news .right-area {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .news .card {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .news .card-body {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .news .left-area {
        /* padding-right: 0 !important; */
    }

    .news .right-area {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* 关于灵巧智控 */
.about-joinu {
    background: url(../image/index_about_bg_image.webp) center top no-repeat;
    width: 100%;
    /* height: 100vh; */
    background-size: cover;
}

.about-joinu .container {
    /* padding-bottom: 187px !important; */
}

.about-joinu .module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-joinu .title .up-part {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    /* color: #e06500; */
}

.about-joinu .title h3 {
    color: #006dc3;
}

.about-joinu .subtitle {
    /* color: #ffffff; */
    margin-bottom: 0 !important;
    margin-left: 0.5rem;
}

@media (max-width: 992px) {
    .about-joinu {
        background: unset;
    }
    .about-joinu::before{
        background: unset;
    }
}

.data-dashboard {
    background: url(../image/index_data_dashboard.webp) center top no-repeat;
    width: 100%;
    /* height: 100vh; */
    background-size: cover;
}

.data-dashboard .line {
    width: 50px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
}

.data-dashboard .num {
    color: #006dc3;
    font-size: 3.125rem;
}

.data-dashboard .num span {
    font-size: 1.25rem;
}

.co-partner .feature-card img {
    /* background: url(../image/cetc.webp) center top no-repeat; */
    height: auto;
    width: 160px;
}

.co-partner .feature-card {
    /* background: url(../image/cetc.webp) center top no-repeat; */
    margin-bottom: 1.25rem;
    box-shadow: none;
}

.co-partner .module-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
}

.co-partner .title .up-part {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
    /* color: #e06500; */
}

.co-partner .title h3 {
    color: #006dc3;
}

.co-partner .subtitle {
    /* color: #ffffff; */
    margin-bottom: 0 !important;
    margin-left: 0.5rem;
}

.leave-messages {
    background: url(../image/index_contact_bg.webp) center top no-repeat;
    width: 100%;
    /* height: 100vh; */
    background-size: cover;
}

.leave-messages button {
    border-radius: 10px;
}

/* footer */
.footer {
    background-color: #2F343A;
}

.footer h5 {
    color: #ffffff;
}

.footer a {
    color: #8C959F !important;
    font-size: 0.875rem !important;
}

.footer .container {
    max-width: 1440px;
}

.footer .left-area {
    border-right: 1px solid #3D444B;
}

.join-us {
    border-right: 1px solid #3D444B;
}

.footer .left-area h1 {
    line-height: 0.3rem;
}

.footer .erweima {
    /* width: 100%; */
    /* display: flex; */
    /* 同时水平和垂直居中 */
    /* 或单独控制水平 */
    /* justify-content: center; */
    /* align-items: center; */
    text-align: center;
}

.footer .erweima img {
    width: 100%;
}

.address,
.email {
    color: #8C959F;
}
.title_icon{
    height: 21px;
}
#navbar-container{
    height:6.5rem;
}
.container{
    max-width: 84rem !important;
}
@media (max-width: 992px) {
    .footer .left-area {
        border-bottom: 1px solid #3D444B;
    }

    .follow-us {
        padding-top: 2rem;
    }
}

/* 新增的响应式样式 */
@media (max-width: 992px) {

    .newest-product,.news,.about-joinu{
        padding: 0 1rem;
    }
    /* 导航栏适配 */
    .navbar-brand img {
        height: 40px !important;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
    }

    .joinu-navbar {
        padding: 5px 0 !important;
        height: 60px !important;
    }

    /* 产品中心下拉菜单适配 */
    .dropdown-mega-menu {
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .product-menu .row {
        /* flex-direction: column !important; */
    }

    .product-menu .col-md-3,
    .product-menu .col-md-9 {
        width: 100% !important;
        flex: none !important;
    }

    .product-menu .nav-pills {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin-bottom: 1rem !important;
    }

    .product-menu .nav-pills .nav-link {
        flex: 1 0 auto !important;
        text-align: center !important;
        margin: 0 0.25rem 0.5rem !important;
        font-size: 13px !important;
    }

    .product-card {
        margin-bottom: 1rem !important;
    }

    /* Banner区适配 */
    .carousel-caption {
        top: 70px !important;
        padding: 5px !important;
        width: 80% !important;
        left: 50%;
        transform: translateX(-50%);
    }

    .carousel-caption h1 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
    }
    /* .carousel-caption-first {
        top: 15%;  
    } */
    .carousel-caption h4{
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .carousel-caption .btn {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    /* 确保轮播图图片在移动端正确显示 */
    .carousel-item img {
        object-fit: cover !important;
        /* height: 250px !important; */
    }

    #uav-product-center .carousel-item img {
        object-fit: contain !important;
        height: 250px !important;
    }

    .container h1 {
        font-size: 2rem !important;
    }

    #navbarSupportedContent {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .feature-carousel{
        padding: 1rem 0;
    }

    .newest-products-header{
        margin-top: 1rem;
    }
}

.product-card-img-container {
    overflow: hidden;
    /* 隐藏超出容器的部分（若有） */
    display: flex;
    /* 让图片居中（可选，推荐） */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    height: 200px;
    /* 固定高度 */

    
}

.product-card-img-container .product-carousel-card-img {
    max-width: 80%;
    /* 图片最大宽度不超过容器 */
    max-height: 100%;
    /* 图片最大高度不超过容器 */
    object-fit: contain;
    /* 核心：图片按比例完整显示，空白处留空（低版本IE不支持则仅靠max-width/max-height） */
}