.slideshow {
    height: 400px;
    object-fit: cover;
}

.two-div{
    width: 100%;
    background: #000;
}

.wow {
  visibility: hidden;
}
.float-left { float: left; }
.float-right { float: right; }
.clearfix::before { content: ""; display: table-cell; }
.clearfix::after { content: ""; display: table; clear: both; }
body { margin: 0; padding: 0; color: #333; font: 16px/24px "-apple-system", "Helvetica", "Microsoft YaHei", "PingFang SC"; outline: none; }
@media (max-width: 991px) {
    .navbar-nav .nav-item .sub-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    .navbar-nav .nav-item {
        pointer-events: auto !important;
    }
    #productSlider {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 10px;
    }
    #productSlider::-webkit-scrollbar {
        display: none;
    }
}


/* 一级导航基础样式 */
.navbar-nav .nav-item {
    position: relative;
    margin: 0 10px;
}

.navbar-nav .nav-link {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 500;
    margin-left: 1.0em;
    margin-right: 1.0em;
    transition: all 0.3s ease;
    padding: 10px 0 !important;
    white-space: nowrap; 
}

/* 鼠标划过 & 选中状态：底部线条动画 */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #000076; 
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-item:hover .nav-link,
.navbar-nav .nav-item.active .nav-link {
    color: #000076 !important;
}

.navbar-nav .nav-item:hover .nav-link::after,
.navbar-nav .nav-item.active .nav-link::after {
    width: 100%;
}


.sub-menu { 
    position: absolute;  
    width: 100%; 
    top: 48px; 
    left: 0; 
    background: #ffffff; /* 跟产品菜单统一白底 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* 统一柔和阴影 */
    opacity: 0; 
    z-index: 999; 
    visibility: hidden; 
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s; 
    transition: all 0.5s; 

    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    transform-origin: 0 0; 

    -webkit-transform:scaleY(0);
    -moz-transform:scaleY(0);
    -ms-transform:scaleY(0);
    -o-transform:scaleY(0);
    transform:scaleY(0);
    
    border-radius: 12px; /* 统一圆角 */
    overflow: hidden;
}
.sub-menu > li > a { 
    display: block; 
    padding: 12px 8px; 
    text-align: center; 
    font-size: 14px; 
    color: #333; /* 统一深色文字 */
    transition: all 0.25s ease;
}
.sub-menu > li + li > a { 
    border-top: 1px solid #f0f0f0; /* 浅灰分隔线，跟卡片搭 */
}
.sub-menu > li:hover > a { 
    background: #f9f9f9; /* hover浅底，跟产品item呼应 */
    color: #000076; /* 保留你主题蓝文字 */
}
.container-nav > ul > li:hover .sub-menu { opacity: 1; visibility: visible;
    -webkit-transform:scaleY( 1 );
    -moz-transform:scaleY( 1 );
    -ms-transform:scaleY( 1 );
    -o-transform:scaleY( 1 );
    transform:scaleY( 1 );  }

/* 产品下拉菜单 - 保留570px整体尺寸 */
.sub-menu.product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
    width: 900px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 auto !important;
    float: none !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
    border: none !important;
}

/* 每个产品项：默认分区明显 + hover动效 */
.product-grid .product-item {
    display: inline-block !important;
    float: none !important;
    width: 240px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 12px 8px !important;
    /* 默认分区感 */
    background: #f9f9f9 !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

/* hover 高亮明显：底色+边框+上浮+阴影 */
.product-grid .product-item:hover {
    background: #fff !important;
    border-color: #ccc !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
}

/* 16:9图片不变 */
.product-grid .product-item img {
    display: block !important;
    margin: 0 auto 10px !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

/* 标题优化 */
.product-grid .product-item span {
    display: block !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
}

/* 翻译 */
.lang-dropdown {
    padding: 10px 0 !important;
    border-top: 2px solid #000076; /* 呼应你的主题绿色 */
}

.lang-item {
    display: block;
    padding: 8px 20px;
    color: #666 !important;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.lang-item:hover {
    background-color: #000076;
    color: #000076 !important;
    padding-left: 25px; /* 简单的位移效果 */
}

.swiper-button-prev {
    background-image: url(data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e3e3e3"><path d="M400-80 0-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>) !important;
    left: 50px !important;
    right: auto;
}
.swiper-button-next {
    background-image: url(data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e3e3e3"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>) !important;
    right: 50px !important;
    left: auto;
}


.fw-bold {
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-weight:600;
}
.fw-bold-num {
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-weight:300;
}
.fw-bold-text {
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-weight:200;
}
/* 数据模型数据显示样式*/
.transition-all {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
  border-radius: 18px !important;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.transition-all:hover {
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important; /*  hover 阴影更好看 */
  border-radius: 18px !important;
}

/* 悬浮动效 */
.hover-shadow {
  transition: all 0.28s ease;
}
.hover-shadow:hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}
.hover-up {
  transition: transform 0.28s ease;
}
.hover-up:hover {
  transform: translateY(-4px);
}
.object-fit-cover {
  object-fit: cover;
}
