/* pages/index/index.wxss */
|
|
/* 搜索栏样式 */
|
.search-bar {
|
padding: 20rpx;
|
background: #ffffff;
|
border-bottom: 1rpx solid #f0f0f0;
|
}
|
|
.search-input-wrapper {
|
position: relative;
|
background: #f5f5f5;
|
border-radius: 50rpx;
|
padding: 0 40rpx 0 80rpx;
|
height: 80rpx;
|
display: flex;
|
align-items: center;
|
}
|
|
.search-input {
|
flex: 1;
|
height: 100%;
|
font-size: 28rpx;
|
color: #333333;
|
}
|
|
.search-icon {
|
position: absolute;
|
left: 30rpx;
|
font-size: 32rpx;
|
color: #999999;
|
}
|
|
.clear-icon {
|
position: absolute;
|
right: 30rpx;
|
width: 40rpx;
|
height: 40rpx;
|
background: #cccccc;
|
border-radius: 50%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
font-size: 24rpx;
|
color: #ffffff;
|
}
|
|
/* 轮播图样式 */
|
.banner-section {
|
margin-bottom: 20rpx;
|
}
|
|
.banner-swiper {
|
height: 400rpx;
|
}
|
|
.banner-media {
|
width: 100%;
|
height: 100%;
|
position: relative;
|
}
|
|
.banner-image-wrapper {
|
width: 100%;
|
height: 100%;
|
}
|
|
.banner-image {
|
width: 100%;
|
height: 100%;
|
}
|
|
.banner-video-wrapper {
|
width: 100%;
|
height: 100%;
|
position: relative;
|
}
|
|
.banner-video-thumb {
|
width: 100%;
|
height: 100%;
|
}
|
|
.banner-video-play-btn {
|
position: absolute;
|
top: 50%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
width: 120rpx;
|
height: 120rpx;
|
background: rgba(0, 0, 0, 0.6);
|
border-radius: 50%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
transition: all 0.3s ease;
|
}
|
|
.banner-video-play-btn:active {
|
transform: translate(-50%, -50%) scale(0.9);
|
background: rgba(0, 0, 0, 0.8);
|
}
|
|
.play-icon {
|
color: #ffffff;
|
font-size: 48rpx;
|
margin-left: 8rpx;
|
}
|
|
.banner-placeholder {
|
width: 100%;
|
height: 100%;
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
}
|
|
.placeholder-text {
|
color: #ffffff;
|
font-size: 32rpx;
|
font-weight: bold;
|
text-align: center;
|
padding: 0 40rpx;
|
}
|
|
.cover-placeholder {
|
width: 100%;
|
height: 100%;
|
background: linear-gradient(135deg, #42a5f5 0%, #1976d2 100%);
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
}
|
|
.cover-placeholder-text {
|
color: #ffffff;
|
font-size: 48rpx;
|
font-weight: bold;
|
}
|
|
.banner-overlay {
|
position: absolute;
|
bottom: 0;
|
left: 0;
|
right: 0;
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
|
padding: 60rpx 30rpx 30rpx;
|
color: #ffffff;
|
}
|
|
.banner-title {
|
font-size: 36rpx;
|
font-weight: bold;
|
margin-bottom: 10rpx;
|
}
|
|
.banner-desc {
|
font-size: 24rpx;
|
opacity: 0.9;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
/* 筛选栏样式 */
|
.filter-bar {
|
background: #ffffff;
|
padding: 20rpx;
|
border-bottom: 1rpx solid #f0f0f0;
|
}
|
|
.filter-tabs {
|
display: flex;
|
justify-content: space-around;
|
}
|
|
.filter-tab {
|
padding: 16rpx 32rpx;
|
border-radius: 40rpx;
|
font-size: 28rpx;
|
color: #666666;
|
background: #f5f5f5;
|
transition: all 0.3s ease;
|
}
|
|
.filter-tab.active {
|
background: #1976d2;
|
color: #ffffff;
|
}
|
|
/* 赛事列表样式 */
|
.activity-list {
|
padding: 0 20rpx;
|
}
|
|
.activity-card {
|
margin-bottom: 30rpx;
|
overflow: hidden;
|
}
|
|
.activity-cover {
|
position: relative;
|
height: 400rpx;
|
}
|
|
.cover-image {
|
width: 100%;
|
height: 100%;
|
}
|
|
.status-badge {
|
position: absolute;
|
top: 20rpx;
|
right: 20rpx;
|
padding: 8rpx 16rpx;
|
background: rgba(0, 0, 0, 0.7);
|
color: #ffffff;
|
border-radius: 20rpx;
|
font-size: 24rpx;
|
}
|
|
.activity-info {
|
padding: 24rpx;
|
}
|
|
.activity-title {
|
font-size: 32rpx;
|
font-weight: bold;
|
color: #333333;
|
margin-bottom: 12rpx;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
.activity-desc {
|
font-size: 26rpx;
|
color: #666666;
|
line-height: 1.5;
|
margin-bottom: 16rpx;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
display: -webkit-box;
|
-webkit-line-clamp: 2;
|
-webkit-box-orient: vertical;
|
}
|
|
/* 时间信息样式 */
|
.time-info {
|
margin-bottom: 16rpx;
|
}
|
|
.time-item {
|
display: flex;
|
align-items: center;
|
margin-bottom: 8rpx;
|
font-size: 24rpx;
|
}
|
|
.time-label {
|
color: #999999;
|
margin-right: 10rpx;
|
min-width: 140rpx;
|
}
|
|
.time-value {
|
color: #333333;
|
flex: 1;
|
}
|
|
/* 地点信息样式 */
|
.location-info {
|
display: flex;
|
align-items: center;
|
margin-bottom: 16rpx;
|
font-size: 24rpx;
|
}
|
|
.location-icon {
|
margin-right: 8rpx;
|
font-size: 26rpx;
|
}
|
|
.location-text {
|
color: #666666;
|
flex: 1;
|
}
|
|
/* 底部信息样式 */
|
.bottom-info {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-bottom: 16rpx;
|
gap: 20rpx;
|
}
|
|
.registration-info {
|
flex: 1;
|
min-width: 0;
|
}
|
|
.progress-text {
|
color: #333333;
|
font-size: 24rpx;
|
margin-bottom: 8rpx;
|
display: block;
|
}
|
|
.progress-bar {
|
height: 6rpx;
|
background: #f0f0f0;
|
border-radius: 3rpx;
|
overflow: hidden;
|
}
|
|
.progress-fill {
|
height: 100%;
|
background: linear-gradient(90deg, #1976d2, #42a5f5);
|
border-radius: 3rpx;
|
transition: width 0.3s ease;
|
}
|
|
/* 标签样式 */
|
.tags {
|
margin-bottom: 16rpx;
|
}
|
|
.tag {
|
display: inline-block;
|
padding: 4rpx 12rpx;
|
background: #e3f2fd;
|
color: #1976d2;
|
border-radius: 16rpx;
|
font-size: 20rpx;
|
margin-right: 8rpx;
|
margin-bottom: 6rpx;
|
}
|
|
/* 操作按钮样式 */
|
.activity-actions {
|
display: flex;
|
justify-content: flex-end;
|
flex-shrink: 0;
|
}
|
|
.action-btn {
|
padding: 12rpx 24rpx;
|
font-size: 26rpx;
|
border-radius: 6rpx;
|
min-width: 120rpx;
|
text-align: center;
|
}
|
|
/* 加载状态样式 */
|
.loading-wrapper {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
padding: 60rpx 0;
|
}
|
|
.loading-text {
|
margin-top: 20rpx;
|
font-size: 28rpx;
|
color: #999999;
|
}
|
|
/* 没有更多数据样式 */
|
.no-more {
|
text-align: center;
|
padding: 40rpx 0;
|
}
|
|
.no-more-text {
|
font-size: 24rpx;
|
color: #999999;
|
}
|
|
/* 空状态样式 */
|
.empty-state {
|
text-align: center;
|
padding: 120rpx 40rpx;
|
}
|
|
.empty-icon {
|
font-size: 120rpx;
|
margin-bottom: 30rpx;
|
opacity: 0.3;
|
}
|
|
.empty-text {
|
font-size: 32rpx;
|
color: #666666;
|
margin-bottom: 16rpx;
|
}
|
|
.empty-desc {
|
font-size: 24rpx;
|
color: #999999;
|
line-height: 1.6;
|
}
|
|
/* 响应式适配 */
|
@media screen and (max-width: 375px) {
|
.banner-swiper {
|
height: 350rpx;
|
}
|
|
.activity-title {
|
font-size: 32rpx;
|
}
|
|
.activity-desc {
|
font-size: 26rpx;
|
}
|
}
|
|
@media screen and (min-width: 414px) {
|
.banner-swiper {
|
height: 450rpx;
|
}
|
|
.activity-title {
|
font-size: 38rpx;
|
}
|
}
|