You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
364 lines
6.5 KiB
364 lines
6.5 KiB
/* pages/main/main.wxss */
|
|
|
|
.page-container {
|
|
min-height: 100vh;
|
|
background: linear-gradient(180deg, #f0f7ff 0%, #eef5ff 100%);
|
|
padding-bottom: 100rpx;
|
|
}
|
|
|
|
/* 顶部导航栏 */
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 20rpx 30rpx;
|
|
background: linear-gradient(135deg, #5ba8ff 0%, #7ec8ff 100%);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.search-bar {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border-radius: 50rpx;
|
|
padding: 15rpx 25rpx;
|
|
margin-right: 20rpx;
|
|
box-shadow: 0 6rpx 16rpx rgba(91, 168, 255, 0.25);
|
|
}
|
|
|
|
.search-icon {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
margin-right: 15rpx;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.user-info {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
}
|
|
|
|
.avatar {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
border: 3rpx solid #fff;
|
|
box-shadow: 0 6rpx 16rpx rgba(91,168,255,0.25);
|
|
}
|
|
|
|
.hero-banner {
|
|
margin: 20rpx;
|
|
border-radius: 24rpx;
|
|
background: linear-gradient(135deg, #eaf3ff 0%, #f2f7ff 100%);
|
|
padding: 30rpx;
|
|
box-shadow: 0 8rpx 24rpx rgba(91,168,255,0.18);
|
|
}
|
|
.hero-content { display:flex; flex-direction:column; gap:12rpx; }
|
|
.hero-title { font-size: 40rpx; font-weight: 800; color: #3b82f6; }
|
|
.hero-subtitle { font-size: 26rpx; color: #4979c6; }
|
|
.hero-tags { display:flex; gap: 12rpx; margin-top: 8rpx; }
|
|
.hero-tag { font-size: 22rpx; color: #fff; background: #9ec5ff; padding: 8rpx 18rpx; border-radius: 999rpx; box-shadow: 0 6rpx 16rpx rgba(158, 197, 255, 0.4); }
|
|
|
|
|
|
/* 功能导航 */
|
|
.nav-section {
|
|
background: #ffffff;
|
|
margin: 20rpx;
|
|
border-radius: 20rpx;
|
|
padding: 30rpx;
|
|
box-shadow: 0 8rpx 24rpx rgba(91, 168, 255, 0.16);
|
|
}
|
|
|
|
.function-group {
|
|
margin-bottom: 40rpx;
|
|
}
|
|
|
|
.function-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.group-title {
|
|
font-size: 30rpx;
|
|
font-weight: 800;
|
|
color: #2a4a7a;
|
|
margin-bottom: 20rpx;
|
|
display: block;
|
|
padding-left: 16rpx;
|
|
border-left: 10rpx solid #4f8bff;
|
|
}
|
|
|
|
.nav-grid {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 160rpx;
|
|
padding: 20rpx 0;
|
|
margin-bottom: 20rpx;
|
|
border-radius: 24rpx;
|
|
background: #f0f7ff;
|
|
box-shadow: 0 8rpx 24rpx rgba(91,168,255,0.16);
|
|
}
|
|
|
|
.nav-icon {
|
|
width: 80rpx;
|
|
height: 80rpx;
|
|
margin-bottom: 15rpx;
|
|
}
|
|
|
|
.nav-icon-emoji {
|
|
font-size: 64rpx;
|
|
margin-bottom: 15rpx;
|
|
display: block;
|
|
line-height: 1;
|
|
animation: float 3s ease-in-out infinite;
|
|
}
|
|
|
|
.theme-pricing { background: linear-gradient(135deg, #e6f0ff 0%, #d9eaff 100%); }
|
|
.theme-publish { background: linear-gradient(135deg, #eaf3ff 0%, #e0efff 100%); }
|
|
.theme-buy { background: linear-gradient(135deg, #e6f7ff 0%, #e1f0ff 100%); }
|
|
.theme-wanted { background: linear-gradient(135deg, #edf6ff 0%, #e0f2ff 100%); }
|
|
|
|
.nav-text { font-weight: 600; color: #3d4d66; }
|
|
|
|
@keyframes float {
|
|
0% { transform: translateY(0); }
|
|
50% { transform: translateY(-6rpx); }
|
|
100% { transform: translateY(0); }
|
|
}
|
|
|
|
.nav-text {
|
|
font-size: 24rpx;
|
|
color: #333;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 推荐商品区域 */
|
|
.recommend-section {
|
|
background: #ffffff;
|
|
margin: 20rpx;
|
|
border-radius: 20rpx;
|
|
padding: 30rpx;
|
|
box-shadow: 0 8rpx 24rpx rgba(91, 168, 255, 0.16);
|
|
}
|
|
|
|
.section-header {
|
|
margin-bottom: 25rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-left {
|
|
flex: 1;
|
|
}
|
|
|
|
.more-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
color: #4285F4;
|
|
font-size: 26rpx;
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 20rpx;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.more-btn:active {
|
|
background-color: rgba(66, 133, 244, 0.1);
|
|
}
|
|
|
|
.more-arrow {
|
|
margin-left: 4rpx;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 34rpx;
|
|
font-weight: 800;
|
|
color: #2a4a7a;
|
|
display: block;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.section-subtitle {
|
|
font-size: 24rpx;
|
|
color: #5e7ea6;
|
|
}
|
|
|
|
.recommend-scroll {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.recommend-list {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.product-card {
|
|
display: inline-block;
|
|
width: 280rpx;
|
|
margin-right: 20rpx;
|
|
background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
box-shadow: 0 10rpx 26rpx rgba(91,168,255,0.16);
|
|
}
|
|
|
|
.product-image {
|
|
width: 100%;
|
|
height: 200rpx;
|
|
border-bottom-left-radius: 24rpx;
|
|
border-bottom-right-radius: 24rpx;
|
|
}
|
|
|
|
.product-info {
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.product-name {
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
display: block;
|
|
margin-bottom: 10rpx;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.product-price {
|
|
font-size: 28rpx;
|
|
color: #3b82f6;
|
|
font-weight: 800;
|
|
display: block;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.product-tag {
|
|
font-size: 20rpx;
|
|
color: #fff;
|
|
background: #9ec5ff;
|
|
padding: 6rpx 14rpx;
|
|
border-radius: 999rpx;
|
|
box-shadow: 0 6rpx 16rpx rgba(158, 197, 255, 0.3);
|
|
}
|
|
|
|
/* 热门求购 */
|
|
.wanted-section {
|
|
background: #ffffff;
|
|
margin: 20rpx;
|
|
border-radius: 20rpx;
|
|
padding: 30rpx;
|
|
box-shadow: 0 8rpx 24rpx rgba(91, 168, 255, 0.16);
|
|
}
|
|
|
|
.wanted-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.wanted-item {
|
|
background: linear-gradient(180deg, #fff 0%, #f6fbff 100%);
|
|
padding: 25rpx;
|
|
border-radius: 18rpx;
|
|
border-left: 8rpx solid #9ec5ff;
|
|
box-shadow: 0 8rpx 24rpx rgba(91,168,255,0.12);
|
|
}
|
|
|
|
.wanted-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 10rpx;
|
|
}
|
|
|
|
.wanted-title {
|
|
font-size: 30rpx;
|
|
color: #2a4a7a;
|
|
font-weight: 800;
|
|
display: block;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.wanted-price {
|
|
font-size: 24rpx;
|
|
color: #3b82f6;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.wanted-time {
|
|
font-size: 22rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.empty-wanted {
|
|
text-align: center;
|
|
padding: 40rpx 0;
|
|
color: #999;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
/* 底部导航栏 */
|
|
.tab-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
background: #ffffff;
|
|
border-top: 1rpx solid #e0e0e0;
|
|
padding: 15rpx 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.tab-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.tab-icon {
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.tab-icon-emoji {
|
|
font-size: 44rpx;
|
|
margin-bottom: 8rpx;
|
|
display: block;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tab-text {
|
|
font-size: 20rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.tab-item.active .tab-text {
|
|
color: #4285F4;
|
|
}
|
|
.red-dot { position:absolute; top:6rpx; right:20rpx; width:16rpx; height:16rpx; background-color:#ff3b30; border-radius:50%; box-shadow:0 2rpx 6rpx rgba(255,59,48,0.4); }
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 750rpx) {
|
|
.nav-item {
|
|
width: 25%;
|
|
}
|
|
|
|
.product-card {
|
|
width: 250rpx;
|
|
}
|
|
} |