/* 轮播图样式 */
.banner {
    margin: 20px 0;
}

.banner-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品分类样式 */
.categories {
    padding: 40px 0;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.category-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.category-item h3 {
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 10px;
}

/* 推荐商品样式 */
.featured {
    padding: 40px 0;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-price::before {
    content: '¥';
    font-size: 14px;
}

.product-button {
    display: block;
    width: 100%;
    padding: 8px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.product-button:hover {
    background-color: #c13026;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .category-list,
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .category-list,
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-wrapper {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .category-list,
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .banner-wrapper {
        height: 200px;
    }
} 