/* ============================================================
   nex.css - Nex 产品详情页
   结构: 1. 基础样式  2. 响应式(按断点合并)
   ============================================================ */

/* ========== 1. 基础样式 ========== */
.product-detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-detail__section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-detail__item {
    width: 100%;
    overflow: hidden;
    will-change: transform, opacity;
    transform-origin: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    will-change: transform, opacity, filter;
    transform-origin: center center;
    backface-visibility: hidden;
}

/* ========== 2. 响应式 (按断点合并) ========== */

/* --- 2.1 笔记本 1024–1919px --- */
@media (min-width: 1024px) and (max-width: 1919px) {
    .product-detail__section {
        min-height: 60vh;
    }
}

/* --- 2.2 平板 max-width: 768px --- */
@media (max-width: 768px) {
    .product-detail {
        gap: 0;
    }
    .product-detail__section {
        min-height: auto;
        /* padding: 1rem 0; */
    }
}

/* --- 2.3 移动端 max-width: 480px --- */
@media (max-width: 480px) {
    .product-detail__section {
        min-height: auto;
        /* padding: 0.5rem 0; */
    }
    .product-detail__img {
        object-fit: contain;
    }
}

