/* 全局通用样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局文字描边样式，防止浅色和深色模式下的文字问题 */
.text-stroke {
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
}

/* 浅色文字描边（用于深色背景） */
.text-stroke-light {
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.8),
        1px -1px 0 rgba(255, 255, 255, 0.8),
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(255, 255, 255, 0.8);
}

/* 为开屏文字添加描边 */
.banner-carousel + div h1,
.banner-carousel + div p {
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
}

/* 头部导航栏核心样式（半透明+毛玻璃优化） */
header.bg-white {
    background-color: rgba(255, 255, 255, 0.5); /* 白色半透明 */
    backdrop-filter: blur(8px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(8px); /* 兼容webkit */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 轻微边框 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    height: 64px; /* 明确header高度 */
}

/* 导航容器基础样式（PC端） */
nav.flex {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

/* 移动端导航触发器（默认隐藏） */
.mobile-nav-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    color: #374151;
}

/* 移动端导航菜单（默认隐藏） */
.mobile-nav-menu {
    display: none;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 90%;
    left: 0;
    z-index: 999;
    padding: 16px 0;
    margin-top: 4px;
}

/* 移动端导航菜单展开 */
.mobile-nav-menu.show {
    display: block;
}

/* 移动端导航链接样式 */
.mobile-nav-link {
    padding: 12px 20px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.mobile-nav-link:last-child {
    border-bottom: none;
}
.mobile-nav-link:hover {
    background-color: #f3f4f6;
    color: #2c5282;
}

/* 移动端产品子菜单 */
.mobile-product-submenu {
    display: none;
    padding-left: 20px;
    background-color: rgba(249, 250, 251, 0.8);
}
.mobile-product-submenu.show {
    display: block;
}
.mobile-nav-link-sub {
    padding: 10px 20px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-nav-link-sub:hover {
    color: #2c5282;
    background-color: #f3f4f6;
}

/* 导航链接基础样式（PC端） */
.nav-link {
    padding: 0 16px;
    height: 100%;
    line-height: 64px;
    color: #374151;
    transition: all 200ms ease-in-out;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
}

/* 导航项悬停样式 */
.nav-link:hover {
    color: #ffffff !important;
    background-color: #2c5282;
}

/* 导航项选中/激活样式 */
.nav-link.text-primary,
.mobile-nav-link.text-primary {
    color: #ffffff !important;
    background-color: #2c5282;
    font-weight: 500;
}

/* 页脚链接样式 */
.footer-link {
    color: #d1d5db;
    transition: color 200ms ease-in-out;
    cursor: pointer;
}
.footer-link:hover {
    color: #2c5282;
}

/* 全局内容容器（删除错误偏移，补banner高度） */
#content-container {
    width: 100%;
    /* 移除transform: translateY(-100px) */
    padding-top: -10vh; /* 补banner的高度，让内容从banner下方开始 */
}

/* 语言菜单动画 */
#langMenu {
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
#langMenu.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 移动端语言切换样式 */
.mobile-lang-toggle {
    padding: 12px 20px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.mobile-lang-menu {
    display: none;
    padding-left: 20px;
}
.mobile-lang-menu.show {
    display: block;
}
.mobile-lang-item {
    padding: 10px 20px;
    color: #374151;
    cursor: pointer;
}
.mobile-lang-item:hover {
    color: #2c5282;
    background-color: #f3f4f6;
}

/* 产品中心下拉菜单（PC端） */
.product-nav-item {
    position: relative;
    height: 100%;
    display: inline-flex;
    align-items: center;
}
.product-submenu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0;
    width: 192px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.2s ease;
    transform: translateY(-5px);
}
.product-submenu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 子菜单链接样式（PC端） */
.nav-link-sub {
    color: #374151;
    transition: all 0.2s ease;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: block;
    border-radius: 4px;
}
.nav-link-sub:hover,
.mobile-nav-link-sub:hover {
    color: #ffffff !important;
    background-color: #2c5282;
}
.nav-link-sub.text-primary,
.mobile-nav-link-sub.text-primary {
    color: #ffffff !important;
    background-color: #2c5282;
    font-weight: 500;
}

/* 响应式断点：平板/手机（768px以下） */
@media (max-width: 768px) {
    /* 隐藏PC端导航 */
    nav.flex > div:not(.mobile-nav-trigger) {
        display: none;
    }
    
    /* 显示移动端导航触发器 */
    .mobile-nav-trigger {
        display: flex;
    }
    
    /* 调整头部内边距 */
    header .max-w-7xl {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* 调整内容容器 */
    #content-container {
        min-height: calc(100vh - 140px);
        padding: 16px 12px;
         /* padding-top: 100vh;移动端也补banner高度 */
    }
    
    /* 调整页面内容页边距 */
    .max-w-7xl {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* 调整文字页边距 */
    p {
        margin-left: 4px;
        margin-right: 4px;
    }
    
    /* 调整标题页边距 */
    h1, h2, h3, h4, h5, h6 {
        margin-left: 4px;
        margin-right: 4px;
    }
    
    /* 调整产品卡片页边距 */
    .product-card {
        padding: 12px;
    }
    
    /* 调整产品系列列表页边距，使其更加贴近屏幕边缘 */
#product-series-list {
    padding-left: 0;
    padding-right: 0;
    margin-left: -12px;
    margin-right: -12px;
}

/* 调整产品系列项页边距，减少左右边距 */
.product-series-item {
    margin-left: 0;
    margin-right: 0;
    padding: 12px 0;
}

/* 调整产品系列卡片边距，减少左右边距 */
.product-series-item .bg-white {
    padding: 12px 8px;
    margin-left: 0;
    margin-right: 0;
}

/* 调整产品系列文字页边距，减少左右边距 */
.product-series-item h3,
.product-series-item p {
    margin-left: 0;
    margin-right: 0;
    padding-left: 4px;
    padding-right: 4px;
}

/* 调整产品系列页面主内容容器页边距 */
#series-list {
    padding-left: 0;
    padding-right: 0;
    margin-left: -12px;
    margin-right: -12px;
}

/* 调整产品系列页面系列部分页边距 */
#series-list > div {
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
}

/* 调整产品系列页面标题和描述页边距 */
#series-list h3,
#series-list p {
    margin-left: 0;
    margin-right: 0;
    padding-left: 4px;
    padding-right: 4px;
}

/* 调整产品系列页面轮播图容器页边距 */
#series-list .series-carousel {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
}

/* 调整产品中心页面产品系列项容器页边距 */
.product-series-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 调整产品中心页面产品系列项内部容器页边距 */
.product-series-item > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 调整产品中心页面产品系列项卡片页边距 */
.product-series-item .bg-white {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* 调整产品中心页面产品系列项内容页边距 */
.product-series-item .bg-white > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 调整产品中心页面产品系列项标题和描述页边距 */
.product-series-item .bg-white h3,
.product-series-item .bg-white p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 调整产品中心页面产品系列项轮播图容器页边距 */
.product-series-item .carousel-container {
    margin-left: -12px !important;
    margin-right: -12px !important;
    width: calc(100% + 24px) !important;
    max-width: calc(100% + 24px) !important;
}
    
    /* 确保轮播图在移动端能够正确显示 */
    .product-series-item .carousel-container .relative {
        width: 100%;
        max-width: 100%;
    }
    
    /* 确保轮播图幻灯片能够正确显示 */
    .product-series-item .carousel-slides {
        width: 100%;
        max-width: 100%;
    }
    
    /* 确保轮播图幻灯片项能够正确显示 */
    .product-series-item .carousel-slide {
        width: 100%;
        max-width: 100%;
    }
    
    /* 确保轮播图图片能够正确显示 */
    .product-series-item .carousel-slide img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin-left: 0;
        margin-right: 0;
        object-fit: cover;
    }
    
    /* 调整产品系列轮播图幻灯片边距 */
    .product-series-item .carousel-slides {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* 调整产品系列轮播图幻灯片项边距 */
    .product-series-item .carousel-slide {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    
    /* 页脚适配 */
    footer .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    footer .flex-wrap {
        flex-direction: column;
        gap: 12px;
    }
    footer .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    footer .w-20 {
        width: 16vw;
        height: 16vw;
        max-width: 80px;
        max-height: 80px;
    }
}

/* 小屏手机适配（480px以下） */
@media (max-width: 480px) {
    footer .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* home 全屏固定海报样式（核心修改：fixed脱离文档流） */
.fullscreen-banner {
    position: fixed; /* 脱离文档流，不再占用空间 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 全屏高度 */
    z-index: 10; /* 低于header，高于内容 */
    transition: opacity 0.5s ease, transform 0.5s ease; /* 优化动画 */
}

/* 确保开屏背景图始终覆盖整个页面 */
.banner-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.banner-carousel .carousel-slides {
    width: 100%;
    height: 100%;
}

.banner-carousel .carousel-slide {
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.banner-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100vh;
}

/* 海报隐藏状态（透明+上移，视觉消失） */
.fullscreen-banner.hidden {
    opacity: 0; /* 透明 */
    transform: translateY(-100%); /* 上移 */
    pointer-events: none; /* 隐藏后不响应点击 */
}

/* 公司简介样式（删除多余padding-top） */
#about-section {
    padding-top: 20px; /* 正常内边距 */
    padding-bottom: 20px;
}