/* ===== pa-05.html右侧产品列表专用样式 ===== */

/* 只针对pa-05.html中的右侧产品列表 */
.products-section .products-grid-new {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 产品项样式 - 总宽度100% */
.products-section .product-item-new {
    width: 100%;
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

/* 图片容器 - 并排两张图片，使用百分比宽度 */
.products-section .product-images-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    min-width: 630px; /* 两张图片宽度 + 间距 */
    flex-shrink: 0;
}

/* 单张图片样式 - 1:1长宽比，使用百分比宽度 */
.products-section .product-image-new {
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1 !important; /* 确保1:1比例，使用!important提高优先级 */
    position: relative;
}

.products-section .product-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 右侧文字信息容器 */
.products-section .product-info-container {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* 允许文字容器收缩 */
}

/* 4行文字栏 */
.products-section .product-info-row {
    margin-bottom: 15px;
}

.products-section .product-name-new {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.products-section .product-description-new {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

.products-section .product-specs {
    font-size: 0.9em;
    color: #888;
}

/* ===== 响应式设计 - 优化自适应 ===== */

/* 中等屏幕设备（平板等）样式 - 最大宽度1400px */
@media (max-width: 1400px) {
    .products-section .product-images-container {
        min-width: 550px;
    }
    
    .products-section .product-image-new {
        width: 270px;
        height: 270px;
    }
}

/* 中等屏幕设备（平板等）样式 - 最大宽度1200px */
@media (max-width: 1200px) {
    .products-section .product-images-container {
        min-width: 500px;
    }
    
    .products-section .product-image-new {
        width: 245px;
        height: 245px;
    }
}

/* 中等屏幕设备（平板等）样式 - 最大宽度1100px */
@media (max-width: 1100px) {
    .products-section .product-images-container {
        min-width: 450px;
    }
    
    .products-section .product-image-new {
        width: 220px;
        height: 220px;
    }
}

/* 中等屏幕设备（平板等）样式 - 最大宽度992px */
@media (max-width: 992px) {
    .products-section .product-item-new {
        flex-direction: column;
    }
    
    .products-section .product-images-container {
        min-width: auto;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .products-section .product-image-new {
        width: 200px;
        height: 200px;
        flex: 0 0 auto;
    }
    
    .products-section .product-info-container {
        width: 100%;
    }
}

/* 小屏幕设备（手机等）样式 - 最大宽度768px */
@media (max-width: 768px) {
    .products-section .product-images-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }
    
    .products-section .product-image-new {
        width: calc(50% - 15px) !important;
        max-width: 250px;
        aspect-ratio: 1 / 1 !important;
        flex: 1 1 calc(50% - 15px) !important;
        min-width: 0;
        position: relative;
        height: auto !important;
    }
    
    .products-section .product-image-new::before {
        content: "";
        display: block;
        padding-bottom: 100%; /* 创建1:1的正方形 */
    }
    
    .products-section .product-image-new img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .products-section .product-info-container {
        padding: 15px;
    }
}

/* 超小屏幕设备样式 - 最大宽度640px */
@media (max-width: 640px) {
    .products-section .product-image-new {
        width: calc(50% - 10px) !important;
        max-width: 200px;
        flex: 1 1 calc(50% - 10px) !important;
    }
}

/* 超小屏幕设备样式 - 最大宽度480px */
@media (max-width: 480px) {
    .products-section .product-images-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .products-section .product-image-new {
        width: 100% !important;
        max-width: 250px;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 auto !important;
    }
    
    .products-section .product-image-new::before {
        content: "";
        display: block;
        padding-bottom: 100%;
    }
    
    .products-section .product-info-container {
        padding: 10px;
    }
    
    .products-section .product-name-new {
        font-size: 1.2em;
    }
    
    .products-section .product-description-new {
        font-size: 0.9em;
    }
    
    .products-section .product-specs {
        font-size: 0.8em;
    }
}

/* 超小屏幕设备样式 - 最大宽度360px */
@media (max-width: 360px) {
    .products-section .product-image-new {
        max-width: 200px;
    }
    
    .products-section .product-info-container {
        padding: 8px;
    }
    
    .products-section .product-name-new {
        font-size: 1.1em;
    }
}