/* 安装展示容器样式 */
.installation-showcase {
    width: 91%;
    max-width: 91%;
    margin: 40px auto;
    padding: 18px 24px;
    box-sizing: border-box;
    box-shadow: 0px 2px 16px  rgba(0, 0, 0, 0.08);
    border-radius: 14px;
}

/* 图片网格布局样式 */
.image-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    grid-template-rows: 1fr;
    gap: 14px;
    justify-content: center;
    width: 100%;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
}

/* 图片项样式 */
.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* 优化容器悬停效果，确保与图片放大同步 */
.image-item:not(.right-column) {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-item:not(.right-column):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    display: block;
    cursor: pointer;
    border-radius: inherit;
}

/* 优化图片放大效果，确保过渡平滑且无边框可见问题 */
.image-item img:hover,
.image-item.bottom-row.left img:hover,
.image-item.right-column .image-top img:hover,
.image-item.right-column .image-bottom img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0); /* 消除潜在的边框可见问题 */
}

/* 左上角大图样式 */
.image-item.large-left {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    aspect-ratio: 620 / 562;
    min-height: 400px;
}

/* 左上角大图文字说明 */
.image-item.large-left p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    margin: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 右侧合并容器 */
.right-side-container {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    box-sizing: border-box;
}

/* 右上角两图容器 */
.image-item.right-column {
    display: flex;
    flex-direction: row;
    gap: 20px;
    aspect-ratio: 1078 / 278;
    min-height: 200px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 右上角图片左右部分 */
.image-item.right-column .image-top {
    width: 45.9%; /* 490/1078 */
    aspect-ratio: 490 / 278;
    overflow: hidden;
    border-radius: 8px;
}

.image-item.right-column .image-bottom {
    width: 52.7%; /* 568/1078 */
    aspect-ratio: 568 / 278;
    overflow: hidden;
    border-radius: 8px;
}

/* 右下角区域 */
.right-side-container > div:last-child {
    display: flex;
    gap: 14px;
    align-items: center;
    aspect-ratio: 1078 / 278;
    min-height: 200px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 预约体验区域样式 */
.appointment-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 100%;
    width: 100%;
}

/* 箭头图片样式 */
.arrow-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
}

/* 右下角图片 */
.image-item.bottom-row.left {
    flex: 1;
    aspect-ratio: 782 / 278;
    border-radius: 8px;
    overflow: hidden;
}

/* 预约体验按钮容器 */
.experience-button-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 30px;
}

/* 预约体验按钮样式 */
.experience-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 193px;
    height: 64px;
    padding: 0;
    background-color: rgba(202, 47, 47, 1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    text-decoration: none;
}

.experience-button:hover {
    background-color: rgba(180, 42, 42, 1);
    box-shadow: none;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.experience-button:active {
    transform: translateY(0);
}

/* 1300px以上屏幕的精确高度和间距设置 */
@media (min-width: 1301px) {
    /* 左侧大图高度限制为560px */
    .image-item.large-left {
        height: 560px;
        aspect-ratio: unset;
        min-height: unset;
    }
    
    /* 右侧合并容器高度为560px */
    .right-side-container {
        height: 560px;
    }
    
    /* 右上角两图容器高度为273px */
    .image-item.right-column {
        height: 273px;
        aspect-ratio: unset;
        min-height: unset;
        gap: 14px; /* 设置内部两图间距为14px */
    }
    
    /* 右上角图片左右部分高度为273px */
    .image-item.right-column .image-top,
    .image-item.right-column .image-bottom {
        height: 273px;
        aspect-ratio: unset;
    }
    
    /* 右下角区域高度为273px */
    .right-side-container > div:last-child {
        height: 273px;
        aspect-ratio: unset;
        min-height: unset;
    }
    
    /* 右下角图片高度为273px */
    .image-item.bottom-row.left {
        height: 273px;
        aspect-ratio: unset;
    }
}

/* 响应式设计 - 图片模板 */
@media (max-width: 1300px) {
    .image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px;
    }
    
    .image-item.large-left,
    .image-item.right-column,
    .right-side-container,
    .right-side-container > div:last-child {
        grid-row: auto;
        grid-column: auto;
        width: 100%;
        height: auto;
    }
    
    .image-item.large-left {
        aspect-ratio: 4 / 3;
        min-height: 300px;
    }
    
    .image-item.right-column {
        flex-direction: row;
        gap: 10px;
        aspect-ratio: 2.2 / 1;
    }
    
    .image-item.right-column .image-top,
    .image-item.right-column .image-bottom {
        width: 50%;
        aspect-ratio: 1 / 1;
    }
    
    .right-side-container > div:last-child {
        flex-direction: column;
        aspect-ratio: 4 / 3;
    }
    
    .image-item.bottom-row.left {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 200px;
    }
    
    /* 调整992px断点下箭头图片的尺寸 */
    .arrow-image img {
        width: 40px;
        height: auto;
    }
    
    /* 调整992px断点下按钮的尺寸 */
    .experience-button {
        width: 170px;
        height: 56px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .installation-showcase {
        padding: 0 15px;
        margin: 30px auto;
    }
    
    .image-grid {
        gap: 10px;
    }
    
    .image-item.right-column {
        aspect-ratio: 3 / 2;
    }
    
    .image-grid > div:last-child {
        gap: 10px;
    }
    
    /* 调整768px断点下箭头图片的尺寸 */
    .arrow-image img {
        width: 35px;
        height: auto;
    }
    
    /* 调整768px断点下按钮的尺寸 */
    .experience-button {
        width: 160px;
        height: 52px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .installation-showcase {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .image-item.right-column {
        flex-direction: column;
        aspect-ratio: 1 / 2;
    }
    
    .image-item.right-column .image-top,
    .image-item.right-column .image-bottom {
        width: 100%;
        aspect-ratio: 4 / 3;
        min-height: 150px;
    }
    
    .image-item.bottom-row.left {
        min-height: 150px;
    }
    
    .image-item.large-left p {
        padding: 15px;
        font-size: 16px;
    }
    
    /* 调整576px断点下箭头图片的尺寸 */
    .arrow-image img {
        width: 30px;
        height: auto;
    }
    
    /* 调整576px断点下按钮的尺寸 */
    .experience-button {
        width: 150px;
        height: 50px;
        font-size: 20px;
        padding: 0;
    }
}

/* Header占位区域样式 */
.header-spacer {
    width: 100%;
    height: 64px; /* 与header高度一致，为header留出空间 */
    background-color: transparent;
    position: relative;
    z-index: 10;
}

/* 视频指示器样式 */
.video-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2; /* 调整z-index，因为删除了video-overlay */
}

.video-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.video-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
    border-color: #ffffff;
}

.video-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* 移动端指示器调整 */
@media (max-width: 768px) {
    .video-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    .video-indicator {
        width: 8px;
        height: 8px;
    }
}

/* 顶部视频组件样式 */
.video-header {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%;
    overflow: hidden;
    margin-top: -64px; /* 向上偏移，覆盖header占位区域，但为header留出视觉空间 */
    z-index: 1;
    background-color: #000;
}



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



.video-pause-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2; /* 调整z-index，因为删除了video-overlay */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-pause-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.video-pause-btn:active {
    transform: translateY(0);
}

/* 视频组件响应式设计 */
@media (max-width: 992px) {
    .video-pause-btn {
        bottom: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .header-spacer {
        height: 54px; /* 移动端header高度 */
    }
    
    .video-header {
        height: 0;
        padding-bottom: 50%;
        margin-top: -54px; /* 移动端向上偏移 */
    }
}

@media (max-width: 576px) {
    .video-header {
        height: 0;
        padding-bottom: 60%;
        margin-top: -50px; /* 小屏幕header高度调整 */
    }
    
    .video-pause-btn {
        bottom: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
    }
}

/* Banner图片样式 */


#intelligence {
    background-color: #FAFAFA;
    top: -80px;
    position: relative;
    z-index: 50;
    margin-bottom: -80px;
}



/* 响应式设计 */
@media (max-width: 1200px) {
}

@media (max-width: 992px) {
  .modal-product-item {
    width: 100%;
    max-width: 550px;
  }
}

@media (max-width: 768px) {
  .product-cards-container {
    gap: 20px;
    padding: 0 15px;
  }
  
  .product-card {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 220px;
  }
  
  .product-image-wrapper {
    height: 180px;
  }
  
  .product-info {
    padding: 15px;
  }
  
  .product-title {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  /* 模态框响应式 */
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-content {
    padding: 20px 15px;
  }
  
  .modal-products {
    max-width: 100%;
  }
  
  .modal-image-container img {
    max-height: 150px;
  }
  
  .modal-info {
    top: 40px;
    left: 30px;
  }
}

@media (max-width: 576px) {
  .product-cards-container {
    gap: 15px;
    padding: 0 10px;
    margin-top: 30px;
  }
  
  .product-image-wrapper {
    height: 160px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-title {
    font-size: 15px;
  }
  
  .product-description {
    font-size: 12px;
  }
  
  /* 模态框响应式 */
  .modal-info {
    top: 30px;
    left: 20px;
  }
  
  .product-title { /* 模态框标题特殊处理 */
    font-size: 18px !important;
  }
  
  .product-description { /* 模态框描述特殊处理 */
    font-size: 14px !important;
  }
  
  .modal-close {
    font-size: 24px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 576px) {
    .product-img-container {
        height: 160px;
    }
}




/* 模态框内容滚动优化 */
.modal-content {
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 280px);
}

/* 确保模态框在移动设备上正确显示 */
@media (max-width: 768px) {
    .modal-content {
        max-height: calc(100vh - 220px);
    }
}

@media (max-width: 576px) {
    .modal-content {
        max-height: calc(100vh - 180px);
    }
}

/* 产品参数区域样式 */




/* 产品卡片交互样式 */
.product-card {
    cursor: pointer;
}


.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* 智能核心掌控区样式 */
.core-control-section {
    margin-top: 100px;
}

.core-control-title {
    font-size: 32px;
    font-weight: 500;
    margin-left: 5%;
    text-align: left;
}

.core-control-divider {
    width: 90%;
    margin: 20px auto;
    height: 2px;
    background-color: #eee;
}

.core-control-cards {
    margin: 50px auto;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.core-control-card {
    width: 24.1%;
    height: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

.core-control-card img {
    width: 80%;
    height: 60%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.core-control-card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

.core-control-card-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.core-control-learn-more {
    display: inline-block;
    padding: 10px 20px;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    font-size: 17px;
}

/* 产品详情模态框样式 */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.product-modal-container {
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-modal-content {
    background-color: #fff;
    padding: 30px 20px;
    max-height: 90vh;
    overflow-y: auto;
}






.product-modal-products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: flex-start;
    padding: 0 20px;
}

.modal-product-card {
    width: 420px;
    height: 500px;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.modal-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.modal-product-card img {
    width: 75%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.modal-product-title {
    font-size: 24px;
    font-weight: 500;
    color: rgba(29, 39, 54, 1);
    margin-bottom: 16px;
}

.modal-product-desc {
    font-size: 16px;
    font-weight: 400;
    color: rgba(94, 100, 105, 1);
    margin-bottom: 30px;
    line-height: 1.4;
}

.modal-product-learn-more {
    display: inline-block;
    padding: 10px 20px;
    color: rgba(53, 82, 102, 1);
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: color 0.3s;
}

.modal-product-learn-more:hover {
    color: #4a6fa5;
}



/* 标签页响应式设计 */
@media (max-width: 768px) {
    .core-control-card {
        width: calc(100% - 20px);
        margin-bottom: 20px;
    }
    /* 模态框响应式设计 - 移动端 */
    .product-modal-container {
        width: 95%;
        margin: 20px;
    }
    .product-modal-content {
        padding: 20px;
    }
    .product-modal-products {
        padding: 0;
    }
    .modal-product-card {
        width: calc(100% - 20px);
        height: auto;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    .core-control-card {
        width: calc(50% - 20px);
        margin-bottom: 20px;
    }
    /* 模态框响应式设计 - 平板 */
    .modal-product-card {
        width: calc(50% - 15px);
        height: auto;
    }
}