/* 产品列表基础样式 */
.content {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.item {
    margin-left: 20px;
    width: 28%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    margin-top: 30px;
    margin-bottom: 50px;
    cursor: pointer; /* 提示可点击 */
    position: relative; /* 新增：让子元素绝对定位以它为参考 */
}
/* 跳转链接：绝对定位覆盖整个卡片 */
.item-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* 确保链接在最上层，点击优先级最高 */
}

.item:hover { transform: translateY(-5px); border-radius: 5px; }

.img img { width: 30px; margin: 10px 0 0 15px; }

.textTop { margin-left: 20px; }

.textTop p { font-size: 16px; margin-bottom: 15px; }

h4 { margin: 0; font-size: 18px; }

.image1 { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.textBut { margin: 15px 0 20px 20px; }

.textBut div p { display: inline-block; margin-right: 10px; }

.contentS-top { margin-left: 3vw; margin-bottom: 40px; }

.contentS-top p {
    font-size: 28px;
    margin: 10px 0 0 0;
    color: #0566c5;
    font-weight: bold;
}

.contentS-top div {
    width: 50px;
    height: 4px;
    background-color: #00cc88;
    margin-bottom: 20px;
}

/* 产品详情页样式 */
.product-detail { width: 100%; box-sizing: border-box; padding: 0; }

.back-btn {
    background-color: #0566c5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 20px;
}

.detail-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.detail-header { margin-bottom: 0; padding-bottom: 0; display: flex; align-items: center; }

.detail-title {
    font-size: 32px;
    color: #0566c5;
    margin-bottom: 15px;
    line-height: 1.3;
}

.detail-preview {
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    height: 600px;
}

.detail-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
    text-indent: 2em;
}

.detail-specs { padding: 30px; border-radius: 12px; margin-bottom: 0; }

.detail-specs h4 { font-size: 24px; margin-bottom: 20px; color: #0566c5; }

.specs-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: white;
    border-bottom: 1px solid #e6f2ff;
}

.spec-name { font-weight: bold; color: #0566c5; min-width: 120px; }

.applications-container { margin-top: 0; padding-top: 30px; border-top: 1px solid #f0f0f0; }

.applications-container h4 { font-size: 24px; margin-bottom: 20px; color: #0566c5; }

.applications-list { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }

.applications-list .tag {
    background-color: #f0f7ff;
    color: #0566c5;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
}

/* 详情页轮播图样式 */
.swiper-container {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto 20px;
    height: 100% !important;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

/* 响应式样式 - 当屏幕宽度小于等于992px时 */
@media (max-width: 992px) {
    /* 调整轮播图尺寸比例 - 使用固定高度并确保图片正确显示 */
    .detail-preview {
        height: 250px !important;
        min-height: 200px;
    }
    
    .swiper-container {
        height: 100% !important;
    }
    
    .swiper-wrapper,
    .swiper-slide {
        height: 100% !important;
    }
    
    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 调整返回按钮和标题的排布为垂直排列 */
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .back-btn {
        margin-right: 0;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    /* 隐藏轮播图文字 */
    .slide-text {
        display: none;
    }
}

.swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100% !important;
    transition: transform 0.5s ease;
}

.swiper-slide { flex-shrink: 0; width: 100%; height: 100% !important; position: relative; }

.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-text {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 80%;
    z-index: 5;
    font-size: 18px;
    font-weight: 500;
}

.swiper-button-prev, .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.swiper-button-prev { left: 20px; }

.swiper-button-next { right: 20px; }

.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    cursor: pointer;
}

.swiper-pagination-bullet.active {
    width: 24px;
    border-radius: 6px;
    background-color: #f2e4dd;
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .item { width: 45%; margin-left: 0; }
    .content { justify-content: space-around; }
}
@media (max-width: 992px) {
    .item { width: 100%; min-height: auto; }
    .specs-columns { grid-template-columns: 1fr; }
}