131 lines
1.9 KiB
Plaintext
131 lines
1.9 KiB
Plaintext
/* 首页样式 */
|
|
.container {
|
|
padding-bottom: 20rpx;
|
|
}
|
|
|
|
/* 搜索栏 */
|
|
.search-bar {
|
|
padding: 20rpx 30rpx;
|
|
background: #fff;
|
|
}
|
|
|
|
.search-input {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 16rpx 24rpx;
|
|
background: #f5f5f5;
|
|
border-radius: 40rpx;
|
|
}
|
|
|
|
.search-icon {
|
|
width: 36rpx;
|
|
height: 36rpx;
|
|
margin-right: 16rpx;
|
|
}
|
|
|
|
.search-placeholder {
|
|
color: #999;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
/* Banner轮播图 */
|
|
.banner-section {
|
|
padding: 0 30rpx 20rpx;
|
|
}
|
|
|
|
.banner-swiper {
|
|
height: 280rpx;
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.banner-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 30rpx 40rpx;
|
|
height: 100%;
|
|
border-radius: 20rpx;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
}
|
|
|
|
.banner-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.banner-title {
|
|
display: block;
|
|
font-size: 40rpx;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.banner-desc {
|
|
display: block;
|
|
font-size: 26rpx;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.banner-img {
|
|
width: 180rpx;
|
|
height: 180rpx;
|
|
}
|
|
|
|
/* 分类列表 */
|
|
.category-list-section {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 20rpx;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.category-card {
|
|
width: calc(50% - 20rpx);
|
|
background: #fff;
|
|
border-radius: 16rpx;
|
|
overflow: hidden;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.category-cover {
|
|
position: relative;
|
|
width: 100%;
|
|
padding-top: 100%;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.category-cover .cover-img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.category-info {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 20rpx 16rpx;
|
|
background: rgba(76,175,80,0.85);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
text-align: center;
|
|
}
|
|
|
|
.category-name {
|
|
display: block;
|
|
font-size: 30rpx;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
margin-bottom: 6rpx;
|
|
}
|
|
|
|
.category-e-name {
|
|
display: block;
|
|
font-size: 22rpx;
|
|
color: rgba(255,255,255,0.9);
|
|
}
|