/* 引入艺术字体 */
/* 现代系统 UI 堆栈：优先使用各系统的原生字体 (如 Mac 的 San Francisco / Win 的 Segoe UI) */
.product-name {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* 商品展示区样式 */
.product-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    font-family: 'Raleway', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

/* 商品网格布局 */
.product-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    gap: 30px;
    justify-content: center;
    justify-items: center;
}

.grid-4x3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-3x4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* 商品卡片样式 - 无边框无背景 */
.product-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    border: none;
}

.grid-4x3 .product-card {
    width: 347.98px;
}

.grid-4x3 .product-image {
    width: 347.98px;
    height: 347.98px;
}

.grid-3x4 .product-card {
    width: 253px;
}

.grid-3x4 .product-image {
    width: 253px;
    height: 253px;
}

.product-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7f7f7 0%, #e3e3e3 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.5s ease;
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    background: linear-gradient(135deg, #f7f7f7 0%, #e3e3e3 100%);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 商品信息左对齐 */
.product-info {
    padding: 20px 0;
    text-align: left;
}

.product-name {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
    position: relative;
    display: block;
}

.product-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: auto;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d9d9d9 0%, #f0e4d7 100%);
    transition: width 0.3s ease;
}

.product-card:hover .product-name::after {
    width: 100%;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 19px;
    margin-bottom: 0;
}

/* 价格样式优化 */
.product-price {
    font-size: 20px;
    font-weight: 300;
    color: #333;
    letter-spacing: 0.5px;
    margin: 0 0 0 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.no-products-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.no-products {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .section-title {
        font-size: 28px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .product-image {
        height: 180px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-name {
        font-size: 18px;
    }

    .grid-4x3 .product-card,
    .grid-3x4 .product-card {
        width: 100%;
    }

    .grid-4x3 .product-image,
    .grid-3x4 .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
