﻿/* #region banner和标题*/
/* 产品列表 Banner 组件 */
.collection-banner-section {
    background-color: #ffffff;
}

.collection-banner-inner {
    position: relative;
    width: 100%;
}

/* PC 端图片 */
.collection-banner-img-pc {
    display: block;
}

    .collection-banner-img-pc img {
        width: 100%;
        height: 480px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* 移动端图片（默认隐藏） */
.collection-banner-img-mobile {
    display: none;
}

    .collection-banner-img-mobile img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

/* 标题文字区域 */
.collection-banner-text {
    text-align: center;
    margin-top: 96px;
    padding: 0 20px;
}

.collection-banner-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #1e2f30;
    margin-bottom: 16px;
}

.collection-banner-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #5f7a7c;
    margin-top: 0;
}

/* 响应式：移动端 */
@media (max-width: 767px) {
    .collection-banner-img-pc {
        display: none;
    }

    .collection-banner-img-mobile {
        display: block;
    }

        .collection-banner-img-mobile img {
            height: 304px; /* 参考原设计，可根据需要调整 */
            object-fit: cover;
        }

    .collection-banner-text {
        margin-top: 48px;
    }

    .collection-banner-title {
        font-size: 8vw; /* 相对视口宽度，保证适配各种手机 */
        font-weight: 700;
        line-height: 1.2;
    }

    .collection-banner-subtitle {
        font-size: 4vw;
        line-height: 1.4;
        margin-top: 8px;
    }
}

/* 平板适配（可选） */
@media (min-width: 768px) and (max-width: 1024px) {
    .collection-banner-img-pc img {
        height: 400px;
    }

    .collection-banner-text {
        margin-top: 64px;
    }

    .collection-banner-title {
        font-size: 36px;
    }
}
/* #endregion */

/* #region 产品列表*/
/* 产品列表区 */
.products-section {
    padding: 80px 24px;
    background-color: #ffffff;
}

.products-container {
    max-width: 1336px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* 卡片 */
.product-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.02);
}

    .product-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    }

/* 图片链接区域 */
.product-image-link {
    position: relative;
    display: block;
    margin: 16px 16px 0;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 240 / 264;
    background-color: #f8f9fa;
}

    .product-image-link img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }

.product-img-base {
    opacity: 1;
    z-index: 1;
}

.product-img-hover {
    opacity: 0;
    z-index: 0;
}

.product-image-link:hover .product-img-base {
    opacity: 0;
}

.product-image-link:hover .product-img-hover {
    opacity: 1;
}

/* 产品信息区 */
.product-info {
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

    .product-title a {
        text-decoration: none;
        color: #1e1e1e;
        transition: color 0.2s;
    }

        .product-title a:hover {
            color: #0b90c7;
        }

/* 颜色区域 - 固定最小高度 */
.product-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    min-height: 32px;
    align-items: center;
}

    .product-colors.no-colors {
        visibility: hidden;
        /* 保留占位 */
    }

.color-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

    .color-circle:hover {
        transform: scale(1.1);
        box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0b90c7;
    }

    .color-circle.active {
        box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0b90c7;
    }

/* 价格 */
.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #0b90c7;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

/* 按钮 */
.product-btn {
    display: inline-block;
    padding: 12px 16px;
    background: transparent;
    border: 1.5px solid #0b90c7;
    color: #0b90c7;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 60px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: auto;
    /* 推到底部 */
}

    .product-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background-color: #0b90c7;
        transition: width 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: -1;
    }

    .product-btn:hover {
        color: white;
        border-color: #0b90c7;
    }

        .product-btn:hover::before {
            width: 100%;
        }

/* 响应式 */
@media (max-width: 1024px) {
    .products-grid {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .products-section {
        padding: 48px 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-image-link {
        margin: 12px 12px 0;
    }

    .product-info {
        padding: 16px 12px 20px;
    }

    .product-title {
        font-size: 14px;
        min-height: 40px;
    }

    .product-colors {
        min-height: 28px;
        gap: 8px;
    }

    .color-circle {
        width: 22px;
        height: 22px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 改为2列 */
        max-width: 320px;
        margin: 0 auto;
    }
}
/* #endregion*/