/* 首页Banner样式 */
.banner {
    margin: 20px 0;
}

.slider img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 分类区域样式 */
.featured-categories {
    padding: 30px 0;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.category-item {
    flex: 0 0 22%;
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item img {
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.category-item h3 {
    font-size: 16px;
    color: #333;
}

/* 热卖商品样式 */
.hot-products {
    padding: 30px 0;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-item {
    flex: 0 0 23%;
    margin-bottom: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-item:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .price {
    font-size: 18px;
    color: #e4393c;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-info .desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-info .btn {
    width: 100%;
    text-align: center;
}

/* 资讯样式 */
.news {
    padding: 30px 0;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.news-list {
    margin-bottom: 20px;
}

.news-item {
    display: flex;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
}

.news-img {
    flex: 0 0 30%;
}

.news-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-info {
    flex: 0 0 70%;
    padding: 15px;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-info .date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-info .summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-info .more {
    color: #e4393c;
    font-size: 14px;
}

.news-info .more:hover {
    text-decoration: underline;
}

.view-more {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .category-item {
        flex: 0 0 48%;
    }
    
    .product-item {
        flex: 0 0 48%;
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-img {
        flex: 0 0 100%;
    }
    
    .news-info {
        flex: 0 0 100%;
    }
} 