修改home

This commit is contained in:
2025-09-23 19:10:14 +08:00
parent 202954ab68
commit b8b6c5a75f
5 changed files with 197 additions and 127 deletions

View File

@@ -7,39 +7,27 @@
background-color: #f5f7fa;
padding: 20rpx;
}
.search-bar {
padding: 16rpx 24rpx;
background-color: #f5f5f7;
}
.search-input {
/* 卡片容器使用纵向布局 */
.cards-container {
display: flex;
align-items: center;
background-color: #eaeaea;
border-radius: 30rpx;
padding: 14rpx 24rpx;
}
.search-input input {
margin-left: 12rpx;
font-size: 28rpx;
flex: 1;
color: #333;
height: 40rpx;
line-height: 40rpx;
flex-direction: column; /* 纵向排列卡片 */
gap: 15px; /* 卡片之间的间距 */
padding: 15px;
box-sizing: border-box;
}
/* 投票卡片卡片样式 */
.voting-card {
width: 90%;
background-color: #ffffff;
border-radius: 24rpx;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
overflow: hidden;
width: 100%;
min-height: 400px; /* 卡片最小高度,可根据内容调整 */
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 15px;
box-sizing: border-box;
}
/* 卡片头部样式 */
.card-header {
display: flex;