/* 商城样式 */
body {
    background-color: #f5f6fa;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

.mall-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-image {
    width: 100%;
    height: 0;
    padding-top: 100%; /* 1:1 宽高比 */
    position: relative;
    background-color: #f8f8f8;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 1;
}

.main-tag {
    top: 10px;
    left: 10px;
    background-color: #ff6b81;
    color: #fff;
}

.sub-tag {
    bottom: 10px;
    right: 10px;
    background-color: #44bd32;
    color: #fff;
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.price {
    display: flex;
    align-items: center;
    color: #ff3f34;
    font-weight: bold;
}

.currency {
    font-size: 14px;
}

.price-empty {
    width: 40px;
    height: 20px;
}

.sales {
    font-size: 12px;
    color: #888;
}

.product-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stars {
    display: flex;
    color: #f1c40f;
    font-size: 14px;
}

.star {
    margin-right: 2px;
}

.reviews {
    font-size: 12px;
    color: #888;
}

.product-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 16px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
} 