Spring Blossom
/* 页面整体居中,最大宽度 */
.container, .main-content {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
/* 分类列表 */
.category-list {
list-style: none;
padding: 0;
}
.category-list li {
margin-bottom: 10px;
}
.category-list a {
text-decoration: none;
color: #333;
font-weight: 500;
}
.category-list a:hover {
color: #000;
}
/* 广告图 */
.banner-img img {
width: 100%;
height: auto;
border-radius: 8px;
}
/* 商品卡片 */
.product-card {
background: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
text-align: center;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.product-card img {
width: 100%;
height: auto;
display: block;
}
.product-card .price {
font-size: 18px;
font-weight: bold;
color: #000;
margin: 10px 0;
}
/* 移动端自适应 */
@media (max-width: 768px) {
.three-column-layout {
display: block;
}
.product-grid {
grid-template-columns: 1fr;
}
}