/* index.css - index.html / index_en.html 专属样式 */

/* 修正 feature-card 在深色背景 index 页的颜色 */
.feature-card {
    background: rgba(17, 34, 64, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}
.feature-card:hover {
    border-color: #3b82f6 !important;
}
.product-item .feature-card h3 { color: white !important; }
.product-item .feature-card p  { color: rgba(255, 255, 255, 0.8) !important; }
.product-item .feature-card span { color: #60a5fa !important; }

.button-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}
.button-gradient:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.3) !important;
}
.button-gradient.bg-white {
    background: white !important;
    color: #1e40af !important;
}
.button-gradient.bg-white:hover { color: #1e3a8a !important; }

p.text-blue-100 { font-size: 0.975rem; }

/* section 全屏分页布局 */
section {
    min-height: 100vh;
    padding-top: 80px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
    display: block !important;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: #0a192f;
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}
.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 10px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}
.indicator-dot.active {
    background-color: #64ffda;
    transform: scale(1.3);
}

/* 轮播图 */
.slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}
.slider img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s ease;
}
.slider img.active { 
    opacity: 1; 
    z-index: 1;
}
.slider-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease, top 1s ease;
    color: ghostwhite;
    font-size: 5rem;
    font-weight: bold;
    text-align: center;
    z-index: 1;
    width: 80%;
    max-width: 1500px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.15em;
}
.slider-text.active { opacity: 1; top: 50%; }
.slider-pp { font-size: 2rem; color: lightskyblue; }

/* 产品中心样式调整 */
#products .products-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

#products .products-scroll {
    display: flex;
    animation: productsScroll 40s linear infinite;
    width: auto;
    min-width: 0;
}

#products .products-scroll:hover {
    animation-play-state: paused;
}

@keyframes productsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

#products .product-item {
    flex: 0 0 18%;
    max-width: 18%;
    padding: 0 12px;
    box-sizing: border-box;
    min-width: 0;
}

#products .product-item .feature-card {
    margin: 0;
    height: 100%;
}

#products .feature-card .relative {
    height: 200px;
    /* 固定图片容器高度 */
}

#products .feature-card img {
    height: 100%;
    object-fit: cover;
}

#products .feature-card .p-6 {
    padding: 1rem;
    flex-grow: 1;
}

#products .feature-card h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

#products .feature-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* 合作伙伴滚动效果 */
#partners .partners-container {
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    height: 280px;
}

#partners .partners-scroll {
    display: flex;
    animation: scrollLeft 30s linear infinite;
    white-space: nowrap;
    align-items: center;
    height: 100%;
}

#partners .partners-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* 调整滚动距离 */
    }
}

#partners .partner-item {
    padding: 0 40px;
    min-width: 240px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#partners .partner-item img {
    max-height: 400px;
    filter: grayscale(0);
    transition: filter 0.3s ease;
}

#partners .partner-item:hover img {
    filter: grayscale(0);
}

/* 证书展示滚动效果 */
#certificates .certificates-container {
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    height: 300px;
}

#certificates .certificates-scroll {
    display: flex;
    animation: scrollLeft 25s linear infinite;
    white-space: nowrap;
    align-items: center;
    height: 100%;
}

#certificates .certificates-scroll:hover {
    animation-play-state: paused;
}

#certificates .certificate-item {
    padding: 0 30px;
    min-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#certificates .certificate-item img {
    max-height: 250px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#certificates .certificate-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 证书展示背景图片样式 */
#certificates {
    background-image: url('../images/首页背景10.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
}

#certificates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(188, 212, 250, 0.507);
    z-index: 1;
}

#certificates .container {
    position: relative;
    z-index: 2;
}

/* 智能制造背景图片样式 */
#manufacture {
    background-image: url('../images/首页背景12.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
}

#manufacture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#manufacture .container {
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity:1 ; }
}

/* 产品中心背景图片样式 */
#products {
    background-image: url('../images/首页背景10.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
}

#products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#products .container {
    position: relative;
    z-index: 2;
}

/* 合作伙伴背景图片样式 */
#partners {
    background-image: url('../images/VCG211416536443.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
}

#partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#partners .container {
    position: relative;
    z-index: 2;
}

/* 关于我们背景图片样式 */
#about {
    background-image: url('../images/首页背景图16.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#about .container {
    position: relative;
    z-index: 2;
}

/* 移动端菜单样式 */
.mobile-menu a {
    padding: 0.5rem 0;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: #3b82f6;
}

.mobile-menu .language-switch {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 语言切换样式 */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.language-switch a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: all 0.3s ease;
}
.language-switch a:hover {
    color: #60a5fa;
}
.language-switch span {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 5px;
}
.language-switch .active {
    color: #60a5fa;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-switch {
        margin-top: 10px;
    }
    
    /* 轮播图响应式 */
    .slider-text { font-size: 2rem; }
    .slider-pp  { font-size: 1rem; }
    
    /* 产品中心响应式 */
    #products .products-container {
        max-width: 100%;
        width: 100%;
    }

    #products .products-scroll {
        width: auto;
        min-width: 0;
    }

    #products .product-item {
        flex: 0 0 42%;
        max-width: 42%;
        margin-right: 12px;
        box-sizing: border-box;
        min-width: 0;
    }

    #products .feature-card .relative {
        height: 140px;
    }

    #products .feature-card img {
        height: 100%;
    }

    #products .feature-card .p-6 {
        padding: 0.75rem;
    }

    #products .feature-card h3 {
        font-size: 0.875rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    #products .feature-card p {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }

    #products .feature-card .flex {
        font-size: 0.75rem;
    }

    #products .products-scroll {
        animation: productsScrollMobile 20s linear infinite;
    }

    @keyframes productsScrollMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
    
    /* 合作伙伴响应式 */
    #partners .partners-container {
        height: 200px;
    }

    #partners .partners-scroll {
        animation: scrollLeft 30s linear infinite;
    }

    #partners .partner-item {
        min-width: 160px;
        padding: 0 15px;
    }

    #partners .partner-item img {
        max-height: 60px;
    }
    
    /* 证书展示响应式 */
    #certificates .certificates-container {
        height: 200px;
    }

    #certificates .certificate-item {
        min-width: 200px;
        padding: 0 15px;
    }

    #certificates .certificate-item img {
        max-height: 150px;
    }
    
    /* 研发技术响应式 */
    #manufacture .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    #manufacture .absolute.left-13,
    #manufacture .absolute.left-23 {
        display: none;
    }
    #manufacture .p-8 {
        padding: 1.5rem;
    }
    #manufacture .text-lg {
        font-size: 1rem;
    }
    
    /* 产品中心响应式 */
    #products .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    #products .feature-card {
        margin-bottom: 1.5rem;
    }
    
    /* 联系我们响应式 */
    #contact .grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    #contact .text-center {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 1rem; /* 统一图标和文字之间的间距 */
    }
    #contact .w-16 {
        width: 2rem;
        height: 2rem;
        flex-shrink: 0; /* 防止图标被压缩 */
    }
    #contact .text-2xl {
        font-size: 1.5rem;
    }
    #contact .w-16 i {
        font-size: 1rem;
    }
    #contact .text-center p {
        margin: 0; /* 移除段落可能存在的默认边距 */
        word-break: normal;
        text-align: left;
    }
    #contact .text-center h4 {
        width: 100%; /* 标题独占一行 */
        margin-bottom: 0.25rem; /* 标题和内容之间添加间距 */
    }
    #contact .text-center {
        align-items: flex-start;
        gap: 1rem;
    }
    /* 新增：文本内容容器，统一宽度 */
    #contact .text-content {
        min-width: 130px; /* 或根据最长内容调整 */
    }
}

@media (max-width: 1024px) {
    /* 研发技术响应式 */
    #manufacture .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #manufacture .gap-40 {
        gap: 2rem;
    }
    
    /* 合作伙伴响应式 */
    #partners .partners-container {
        height: 240px;
    }

    #partners .partner-item {
        min-width: 200px;
        padding: 0 20px;
    }

    #partners .partner-item img {
        max-height: 80px;
    }
    
    /* 证书展示响应式 */
    #certificates .certificates-container {
        height: 250px;
    }

    #certificates .certificate-item {
        min-width: 250px;
        padding: 0 20px;
    }

    #certificates .certificate-item img {
        max-height: 200px;
    }
    
    /* 产品中心响应式 */
    #products .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    /* 联系我们响应式 */
    #contact .grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1280px) {
    /* 产品中心响应式 */
    #products .grid-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 3fr));
    }
}

/* 假设小屏幕 breakpoint 是 max-width: 640px */
@media (max-width: 640px) {
  .hide-on-sm {
    display: none;
  }
}

/* 证书展示响应式背景适配 */
@media (max-width: 768px) {
    #certificates {
        background-attachment: scroll;
        background-position: center;
    }
}

/* 研发技术响应式背景适配 */
@media (max-width: 768px) {
    #manufacture {
        background-attachment: scroll;
        background-position: center;
    }
}

/* 产品中心响应式背景适配 */
@media (max-width: 768px) {
    #products {
        background-attachment: scroll;
        background-position: center
    }
}
