/* ==================== 主图区 ==================== */
.index-banner {
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.index-banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.index-banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


.index-banner .cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: rgba(30,30,140,1);
    color:  white;
    border:none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.index-banner .cta-button:hover {
    background-color: rgb(112, 112, 255);
    color: white;
}
.index-banner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 保持原有的内容样式不变 */
.index-banner-content {
    position: relative;
    z-index: 1;
}

/* ==================== 产品区 ==================== */
.index-products {
    height: 100vh;
    padding: 40px 0;
    max-width: 85%;
    margin: 0 150px;
    
}

.index-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.index-section-title {
    font-size: 40px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.index-learn-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color:  rgba(30,30,140,1);
    border: 1px solid  rgba(30,30,140,1);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.index-learn-more:hover {
    background-color:  rgba(30,30,140,1);
    color: white;
}
.index-gallery {
    display: flex;
    height: 80vh;
    gap: 10px;
    padding: 0 1rem;
}

.index-image-container {
    flex: 1;
    transition: all 0.5s ease;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.index-image-container:hover {
    flex: 3.5;
}

.index-image-container:hover ~ .index-image-container {
    flex: 0.8;
}

.index-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.index-caption {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translate(-50%, 50%);
    color: white;
    font-size: 24px;
    font-weight: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.5s ease;
    opacity: 1;
    text-align: center;
}

.index-image-container:hover .index-caption {
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    width: max-content;
    max-width: 80%;
}
.index-view-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -50px;
    padding: 0.8rem 1.8rem;
    background: rgba(30,30,140,1);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.5s ease;
    opacity: 0;
    white-space: nowrap;


    color: white;
    border: none;
    cursor: pointer;
}
.index-image-container:hover .index-view-button{
    bottom: 40%;
    opacity: 1;
    transform: translateX(-50%) translateY(40px);
}
.index-view-button:hover {
    background: rgb(112, 112, 255);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* ==================== 特色区 ==================== */

.index-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    

    
    
   margin-bottom: 0%;
}

.index-carousel-header {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 170px;
}

.index-carousel-title {
    font-size: 40px;
    font-weight: 600;
    color: white;
    margin: 0;
}


.index-carousel-learn-more:hover {
    background-color: rgb(112, 112, 255);
    color: white;
}

.index-carousel-learn-more {
    display: inline-block;
    padding: 8px 16px;
    border:none;
    background-color: rgba(30,30,140,1);
    color:  white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}



.index-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.index-slide {
    min-width: 100%;
    height: 100%;
}

.index-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.index-logos {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0);
    
    border-radius: 20px;
    width: 90%;
    margin: 0 auto;
}

.index-logo {
    width: 100px;
    height: 100px;
    margin: 0 5rem;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.0);
}

.index-logo:hover {
    transform: scale(1.1);
    background: rgba(30, 30, 140, 0.7);
}

.index-logo.active {
    border-color: #fff;
    transform: scale(1.2);
    background: rgba(30, 30, 140, 0.9);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.index-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}


/* ==================== 关于我们区块 ==================== */
.index-about {
    height: 100vh;
    padding: 40px 0;
    max-width: 85%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.about-container {
    display: flex;
    width: 100%;
    height: 80%;
    gap: 40px;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 40px;
}

.about-header h2 {
    font-size: 40px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    
}

.about-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.about-feature {
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-feature h3 {
    font-size: 18px;
    color: rgba(30,30,140,1);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-feature h3 i {
    margin-right: 10px;
    font-size: 20px;
}

.about-feature p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.about-learn-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: rgba(30,30,140,1);
    border: 1px solid rgba(30,30,140,1);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
}

.about-learn-more:hover {
    background-color: rgba(30,30,140,1);
    color: white;
}

.about-learn-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.about-learn-more:hover i {
    transform: translateX(3px);
}

.about-image {
    flex: 1;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ==================== 移动端优化 ==================== */
@media (max-width: 768px) {
    /* 主横幅区域 */
    .index-banner {
        height: 60vh; /* 减小高度 */
    }
    
    .index-banner-content h1 {
        font-size: 2rem; /* 缩小标题 */
    }
    
    /* 视频背景在移动端可能性能差，使用静态背景 */
    .video-background {
        display: none;
    }
    
    .index-banner {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    /* 产品展示区 */
    .index-products {
        height: auto; /* 移除固定高度 */
        margin: 0 20px;
        padding: 40px 0;
    }
    
    .index-gallery {
        flex-direction: column; /* 垂直堆叠 */
        height: auto;
    }
    
    .index-image-container {
        height: 200px; /* 固定高度 */
        margin-bottom: 10px;
    }
    
    .index-image-container:hover {
        flex: 1; /* 移除悬停效果 */
    }

    /* 轮播图区域 */
    .index-carousel {
        height: 50vh; /* 调整高度 */
    }
    
    .index-carousel-header {
        padding: 0 20px;
        top: 20px;
    }
    
    .index-carousel-title {
        font-size: 1.5rem;
    }
    
    .index-logos {
        bottom: 20px;
        width: 100%;
        padding: 10px;
    }
    
    .index-logo {
        width: 60px;
        height: 60px;
        margin: 0 10px; /* 减小间距 */
    }

    /* 关于我们区域 */
    .index-about {
        height: auto;
        padding: 40px 20px;
    }
    
    .about-container {
        flex-direction: column; /* 垂直布局 */
        height: auto;
    }
    
    .about-features {
        grid-template-columns: 1fr; /* 单列布局 */
    }
}