/* 样式错乱修复CSS */
/* 修复导航栏、Banner和整体布局问题 */

/* 1. 修复导航栏样式 - 非首页默认样式 */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    min-height: 70px !important;
    font-family: "Poppins", sans-serif !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 首页特殊样式 */
body.home .navbar {
    background: transparent !important;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

/* 首页滚动后的导航栏样式 */
body.home .navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

body.home .navbar.navbar-scrolled .navbar-nav .nav-link {
    color: #000 !important;
    text-shadow: none !important;
}

body.home .navbar.navbar-scrolled .language-switch {
    color: #000 !important;
    border-color: #ddd !important;
}

/* 2. 修复导航品牌Logo */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    padding: 0 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.navbar-brand:hover {
    transform: translateY(-1px) !important;
}

.brand-content {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.brand-icon {
    font-size: 28px !important;
    color: #667eea !important;
    transition: all 0.3s ease !important;
}

.main-image-box{
    display: none !important;

}


.brand-text {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

/* 中英文标题容器样式 */
.brand-text-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    max-width: 280px !important;
}

.brand-text-chinese {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease !important;
}

.brand-text-english {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #7f8c8d !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 当英文显示在第一行时的样式调整 */
.brand-text-container .brand-text-english:first-child {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    letter-spacing: 1px !important;
}

.brand-text-container .brand-text-chinese:last-child {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #7f8c8d !important;
    letter-spacing: 0.5px !important;
}

/* 首页品牌样式 */
body.home .navbar-brand .brand-icon {
    /* color: #fff !important; */
}

body.home .navbar-brand .brand-text {
    /* color: #fff !important; */
}

body.home .navbar-brand .brand-text-chinese {
    /* color: #fff !important; */
}

body.home .navbar-brand .brand-text-english {
    /* color: rgba(255, 255, 255, 0.8) !important; */
}

/* 首页时英文显示在第一行的样式 */
body.home .navbar-brand .brand-text-container .brand-text-english:first-child {
    /* color: #fff !important; */
}

body.home .navbar-brand .brand-text-container .brand-text-chinese:last-child {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 滚动后品牌样式 */
.navbar.navbar-scrolled .brand-icon {
    color: #667eea !important;
}

.navbar.navbar-scrolled .brand-text {
    color: #2c3e50 !important;
}

.navbar.navbar-scrolled .brand-text-chinese {
    color: black !important;
}

.navbar.navbar-scrolled .brand-text-english {
    /* color: #7f8c8d !important; */
    color: #2c3e50 !important
}

/* 滚动后英文显示在第一行的样式 */
.navbar.navbar-scrolled .brand-text-container .brand-text-english:first-child {
    color: black !important;
}

.navbar.navbar-scrolled .brand-text-container .brand-text-chinese:last-child {
    color: #7f8c8d !important;
}

.navbar-brand .logo {
    width: 120px !important;
    height: auto !important;
    max-height: 50px !important;
    margin-left: 0 !important;
}

/* 3. 修复导航菜单 */
.navbar-collapse {
    display: flex !important;
    justify-content: flex-end !important;
    background: transparent !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav .nav-item {
    display: block !important;
    margin: 0 5px !important;
}

.navbar-nav .nav-link {
    display: block !important;
    color: #000 !important;
    text-decoration: none !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    border-radius: 5px !important;
}

/* 首页导航链接样式 */
body.home .navbar-nav .nav-link {
    /* color: #fff !important; */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

.navbar-nav .nav-link:hover {
    color: #3999f2 !important;
    background-color: rgba(57, 153, 242, 0.1) !important;
}

.navbar-nav .nav-link.active {
    color: #3999f2 !important;
    background-color: rgba(57, 153, 242, 0.1) !important;
}

/* 4. 修复语言切换按钮 - 简洁样式 */
.language-switch {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-left: 15px !important;
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

/* 首页语言切换按钮样式 */
body.home .language-switch {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}

.language-switch:hover {
    background-color: rgba(57, 153, 242, 0.1) !important;
    color: #3999f2 !important;
    transform: translateY(-1px) !important;
}

.language-switch .fa-globe {
    font-size: 14px !important;
}

.language-switch .lang-text {
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
}

/* 5. 修复Banner区域 */
.home {
    background: #fff !important;
   
    width: 100% !important;
    position: relative !important;
    padding-top: 0 !important; /* 首页banner应该从顶部开始 */
}

/* 6. 修复slideWiz容器 */
.slideWiz {
    width: 100% !important;
    height: 100vh !important; /* 占满整个视口高度 */
    position: relative !important;
    background: #f8f9fa !important;
}

/* 7. 修复页面标题样式 */
.home .detail-title {
    font-family: "Poppins", sans-serif !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: #001942 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.home .detail-desc {
    font-family: "Poppins", sans-serif !important;
    font-size: 1.5rem !important;
    color: #353434 !important;
    margin: 10px 0 20px 0 !important;
    line-height: 1.4 !important;
}

/* 8. 修复移动端响应式 */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
           width: 100% !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        padding: 20px 0 !important;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0 !important;
        width: 100% !important;
    }
    
    .navbar-nav .nav-link {
        text-align: center !important;
        padding: 15px !important;
        border-radius: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .language-switch {
        margin: 10px auto !important;
        justify-content: center !important;
        width: auto !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
    
    .home .detail-title {
        font-size: 2rem !important;
    }
    
    .home .detail-desc {
        font-size: 1.2rem !important;
    }
    
    /* 品牌标识响应式 */
    .brand-text {
        font-size: 20px !important;
    }
    
    .brand-icon {
        font-size: 24px !important;
    }
}

/* 9. 修复汉堡菜单按钮 */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.75rem !important;
    background: transparent !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar .icon-bar {
    color: #353434 !important;
    margin-right: 0 !important;
}

/* 10. 确保内容区域不被导航栏遮挡 */
body {
    padding-top: 0 !important; /* 默认不设置padding-top */
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* 非首页需要padding-top来避免被导航栏遮挡 */
body:not(.home) {
    padding-top: 0 !important; /* 移除padding-top，因为页面头部区域已经处理了间距 */
}

html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* 11. 修复滚动导航样式 */
.nav-scroll {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 12. 修复页面整体布局 */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* 13. 确保所有元素正常显示 */
* {
    box-sizing: border-box !important;
}

/* 14. 修复可能的字体问题 */
body, .navbar {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* 15. 产品详情页面导航栏遮挡修复 */
.product-detail-page {
    padding-top: 100px !important; /* 为固定导航栏留出空间 */
    margin-top: 0 !important;
    min-height: 100vh;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

/* 面包屑导航确保可见 */
.breadcrumb-section {
    position: relative;
    z-index: 10;
    background: #fff !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #e9ecef !important;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
}

/* 产品详情页面响应式修复 */
@media (max-width: 768px) {
    .product-detail-page {
        padding-top: 70px !important;
    }
    
    .breadcrumb-section {
        padding: 15px 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .product-detail-page {
        padding-top: 60px !important;
    }
    
    .breadcrumb-section {
        padding: 10px 0;
        margin-bottom: 15px;
    }
} 

/* 修复贸易案例被遮挡的问题 - 增强版 */

/* 确保作品集部分有足够的底部间距和正确的定位 */
.portfolio {
    padding-bottom: 120px !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: visible !important;
    min-height: auto !important;
}

/* 修复准备开始部分的背景定位问题 */
.ready {
    background: linear-gradient(rgba(0, 25, 66, 0.8), rgba(57, 153, 242, 0.8)), url("../img/hero-02.jpg") no-repeat center !important;
    background-size: cover !important;
    position: relative !important;
    z-index: 5 !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

/* 确保作品集容器有正确的定位和足够的空间 */
.portfolio .filtr-container {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 40px !important;
    overflow: visible !important;
}

/* 确保作品集项目有正确的间距和显示 */
.portfolio .filtr-item {
    margin-bottom: 40px !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

/* 修复作品集图片的显示 */
.portfolio .port-caption {
    position: relative !important;
    overflow: visible !important;
    margin-bottom: 20px !important;
}

.portfolio .port-caption img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 2px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 确保作品集覆盖层正确显示 */
.portfolio .port-caption .overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transition: ease-out .3s !important;
    opacity: 0 !important;
    transform: translateX(10px) !important;
    z-index: 2 !important;
}

.portfolio .filtr-item:hover .overlay {
    margin: 1.5rem !important;
    background: linear-gradient(to left, rgba(57, 153, 242, 0.5), rgba(0, 25, 66, 0.5)) !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* 确保筛选按钮正确显示 */
.portfolio .simplefilter {
    margin-bottom: 50px !important;
    position: relative !important;
    z-index: 1 !important;
}

.portfolio .simplefilter li {
    margin: 0 5px 10px 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 强制确保作品集行容器正确显示 */
.portfolio .row {
    margin-bottom: 40px !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

/* 确保作品集标题区域正确显示 */
.portfolio .port-title {
    margin-bottom: 40px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 强制覆盖可能的负margin */
.portfolio * {
    overflow: visible !important;
}

/* 确保container-fluid正确显示 */
.portfolio .container-fluid {
    padding-bottom: 40px !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

/* 响应式修复 - 增强版 */
@media (max-width: 768px) {
    .portfolio {
        padding-bottom: 100px !important;
    }
    
    .portfolio .filtr-item {
        margin-bottom: 30px !important;
    }
    
    .portfolio .simplefilter li {
        margin: 0 3px 8px 0 !important;
        padding: 5px 15px !important;
        font-size: 14px !important;
    }
    
    .portfolio .filtr-container {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .portfolio {
        padding-bottom: 80px !important;
    }
    
    .portfolio .simplefilter li {
        padding: 4px 12px !important;
        font-size: 13px !important;
        margin: 0 2px 6px 0 !important;
    }
    
    .portfolio .filtr-item {
        margin-bottom: 25px !important;
    }
    
    .portfolio .filtr-container {
        margin-bottom: 25px !important;
    }
}

/* 强制修复可能的CSS冲突 */
.portfolio,
.portfolio *,
.portfolio .filtr-container,
.portfolio .filtr-item,
.portfolio .port-caption {
    clip: auto !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
}

/* 确保scroll-to-top按钮正常工作 */
#scroll-to-top {
    display: none !important; /* 初始隐藏，由JavaScript控制 */
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    background: #001942 !important;
    color: #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    line-height: 50px !important;
}

#scroll-to-top:hover {
    background: #3999f2 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

#scroll-to-top i {
    font-size: 18px !important;
    line-height: 50px !important;
    text-align: center !important;
    display: block !important;
    color: #fff !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #scroll-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    
    #scroll-to-top i {
        font-size: 16px !important;
        line-height: 45px !important;
    }
}

@media (max-width: 480px) {
    #scroll-to-top {
        width: 40px !important;
        height: 40px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
    
    #scroll-to-top i {
        font-size: 14px !important;
        line-height: 40px !important;
    }
} 

/* Banner区域响应式修复 */
.home {
    background: #fff;
    
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slideWiz {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
    width: 100% !important;
    height: 100vh !important;
    /* min-height: 500px; */
    max-height: 100vh;
}

/* 确保banner内容在容器内正确显示 */
.slideWiz > * {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

 
@media (max-width: 768px) {
    .slideWiz {
        height: 0 !important;
        min-height: 0px;
    }
    
   
}
 
/* 确保banner图片正确缩放 */
.slideWiz img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 图片重新加载时的样式 */
.slideWiz img[src*="_t="] {
    opacity: 0;
    transform: scale(1.02);
}

.slideWiz img[src*="_t="].loaded {
    opacity: 1;
    transform: scale(1);
}

/* 图片加载失败时的样式 */
.slideWiz img.error {
    opacity: 0.5;
    filter: grayscale(50%);
}

/* 图片加载中的样式 */
.slideWiz img.loading {
    opacity: 0.7;
    filter: blur(1px);
}

/* 确保图片在容器中正确显示 */
.slideWiz > * {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* 图片容器优化 */
.slideWiz .banner-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideWiz .banner-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 图片加载占位符 */
.slideWiz .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 48px;
    z-index: 1;
}

.slideWiz .image-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 图片加载动画 */
@keyframes imageLoadFadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slideWiz img.fade-in {
    animation: imageLoadFadeIn 0.3s ease-out;
}

/* 响应式图片优化 */
@media (max-width: 768px) {
    .slideWiz img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

@media (max-width: 480px) {
    .slideWiz img {
        image-rendering: auto;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .slideWiz img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 确保banner容器在所有设备上都能正确显示 */
.home,
.slideWiz {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 修复可能的z-index问题 */
.home {
    z-index: 1;
}

.slideWiz {
    z-index: 2;
}

.home .detail-box {
    z-index: 3;
}

/* 添加平滑的过渡效果 */
.home,
.slideWiz {
    transition: all 0.3s ease;
}

/* 确保在JavaScript动态调整时保持响应式 */
.slideWiz[style*="height"] {
    height: 100vh !important;
    min-height: 500px;
}

@media (min-width: 768px) {
    .slideWiz[style*="height"] {
         height: 0vh !important;
        /* min-height: 350px; */  
    }
}

 