/* 页面容器 - 控制整体内边距 */
.page-container {
    padding: 1rem;
}

/* 商品系列容器 */
.series-container {
    margin-bottom: 30px;
}

/* 系列图片区域 */
.series-image-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.series-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

/* 商品容器 - 一行4个卡片 */
.product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* 商品卡片样式 */
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* 商品图片 - 高度260px */
.product-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* 图片和内容分隔线 */
.img-separator {
    height: 1px;
    background-color: #e2e8f0;
    width: 100%;
}

/* 商品信息区域 */
.card-content {
    padding: 1rem;
    background-color: rgba(243, 244, 246, 0.7);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    /* margin-bottom: 6px; */
    flex-wrap: wrap;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .product-container {
        padding: 1rem;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-container {
        padding: 1rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-img {
        height: 220px;
    }

    .product-name {
        font-size: 15px;
    }

    .page-container {
        padding: 12px;
    }

    .series-image-container {
        margin-bottom: 15px;
    }
}

/* 横屏优化 */
@media (orientation: landscape) {
    @media (max-width: 1024px) {
        .product-img {
            height: 200px;
        }
    }

    @media (max-width: 768px) {
        .product-container {
            padding: 1rem;
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

@media (max-width: 480px) {
    .product-container {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-img {
        height: 200px;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .page-container {
        padding: 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    .series-image {
        max-height: 140px;
    }
}