/* pages/activity/detail.wxss */
|
|
/* 媒体区域样式 */
|
.media-section {
|
position: relative;
|
margin-bottom: 20rpx;
|
}
|
|
.media-swiper {
|
height: 500rpx;
|
}
|
|
.media-image {
|
width: 100%;
|
height: 100%;
|
}
|
|
.video-wrapper {
|
position: relative;
|
width: 100%;
|
height: 100%;
|
}
|
|
.video-poster {
|
width: 100%;
|
height: 100%;
|
}
|
|
.video-play-btn {
|
position: absolute;
|
top: 50%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
width: 120rpx;
|
height: 120rpx;
|
background: rgba(0, 0, 0, 0.7);
|
border-radius: 50%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
color: #ffffff;
|
font-size: 48rpx;
|
}
|
|
.status-badge {
|
position: absolute;
|
top: 30rpx;
|
right: 30rpx;
|
padding: 12rpx 24rpx;
|
background: rgba(0, 0, 0, 0.8);
|
color: #ffffff;
|
border-radius: 30rpx;
|
font-size: 24rpx;
|
font-weight: bold;
|
}
|
|
/* 基本信息样式 */
|
.info-section {
|
margin-bottom: 20rpx;
|
}
|
|
.activity-title {
|
font-size: 40rpx;
|
font-weight: bold;
|
color: #333333;
|
margin-bottom: 20rpx;
|
line-height: 1.4;
|
}
|
|
.activity-desc {
|
font-size: 28rpx;
|
color: #666666;
|
line-height: 1.6;
|
margin-bottom: 30rpx;
|
}
|
|
/* 时间信息样式 */
|
.time-info {
|
margin-bottom: 30rpx;
|
}
|
|
.time-item {
|
display: flex;
|
margin-bottom: 16rpx;
|
font-size: 26rpx;
|
}
|
|
.time-label {
|
color: #999999;
|
min-width: 140rpx;
|
margin-right: 20rpx;
|
}
|
|
.time-value {
|
color: #333333;
|
flex: 1;
|
font-weight: 500;
|
}
|
|
/* 地点信息样式 */
|
.location-info {
|
margin-bottom: 30rpx;
|
padding: 24rpx;
|
background: #f8f9fa;
|
border-radius: 12rpx;
|
border-left: 6rpx solid #1976d2;
|
}
|
|
.location-label {
|
font-size: 26rpx;
|
color: #1976d2;
|
font-weight: bold;
|
margin-bottom: 12rpx;
|
}
|
|
.location-value {
|
font-size: 28rpx;
|
color: #333333;
|
line-height: 1.5;
|
}
|
|
.address {
|
display: block;
|
color: #666666;
|
font-size: 24rpx;
|
margin-top: 8rpx;
|
}
|
|
/* 报名进度样式 */
|
.registration-progress {
|
margin-bottom: 30rpx;
|
}
|
|
.progress-header {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-bottom: 16rpx;
|
}
|
|
.progress-label {
|
font-size: 26rpx;
|
color: #333333;
|
font-weight: 500;
|
}
|
|
.progress-count {
|
font-size: 26rpx;
|
color: #1976d2;
|
font-weight: bold;
|
}
|
|
.progress-bar {
|
height: 12rpx;
|
background: #f0f0f0;
|
border-radius: 6rpx;
|
overflow: hidden;
|
margin-bottom: 12rpx;
|
}
|
|
.progress-fill {
|
height: 100%;
|
background: linear-gradient(90deg, #1976d2, #42a5f5);
|
border-radius: 6rpx;
|
transition: width 0.3s ease;
|
}
|
|
.progress-percent {
|
text-align: center;
|
font-size: 24rpx;
|
color: #1976d2;
|
font-weight: bold;
|
}
|
|
/* 标签样式 */
|
.tags {
|
margin-bottom: 20rpx;
|
}
|
|
.tag {
|
display: inline-block;
|
padding: 8rpx 20rpx;
|
background: #e3f2fd;
|
color: #1976d2;
|
border-radius: 24rpx;
|
font-size: 22rpx;
|
margin-right: 16rpx;
|
margin-bottom: 12rpx;
|
}
|
|
/* 内容区域样式 */
|
.content-section,
|
.requirements-section,
|
.prizes-section,
|
.rules-section,
|
.organizer-section {
|
margin-bottom: 20rpx;
|
}
|
|
.section-title {
|
font-size: 32rpx;
|
font-weight: bold;
|
color: #333333;
|
}
|
|
.content-text,
|
.requirements-text,
|
.prizes-text,
|
.rules-text {
|
font-size: 28rpx;
|
color: #333333;
|
line-height: 1.8;
|
}
|
|
/* 主办方信息样式 */
|
.organizer-item {
|
display: flex;
|
margin-bottom: 20rpx;
|
font-size: 26rpx;
|
}
|
|
.organizer-label {
|
color: #999999;
|
min-width: 140rpx;
|
margin-right: 20rpx;
|
}
|
|
.organizer-value {
|
color: #333333;
|
flex: 1;
|
}
|
|
.contact-phone {
|
color: #1976d2;
|
text-decoration: underline;
|
}
|
|
/* 底部操作栏样式 */
|
.bottom-actions {
|
position: fixed;
|
bottom: 0;
|
left: 0;
|
right: 0;
|
background: #ffffff;
|
border-top: 1rpx solid #f0f0f0;
|
padding: 20rpx;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
box-shadow: 0 -4rpx 16rpx rgba(0, 0, 0, 0.1);
|
z-index: 100;
|
}
|
|
.action-left {
|
flex: 0 0 auto;
|
}
|
|
.share-btn {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
padding: 12rpx 20rpx;
|
color: #666666;
|
}
|
|
.share-icon {
|
font-size: 32rpx;
|
margin-bottom: 4rpx;
|
}
|
|
.share-text {
|
font-size: 20rpx;
|
}
|
|
.action-right {
|
flex: 1;
|
margin-left: 20rpx;
|
}
|
|
.register-btn,
|
.status-btn,
|
.disabled-btn {
|
width: 100%;
|
padding: 24rpx 0;
|
font-size: 32rpx;
|
font-weight: bold;
|
border-radius: 12rpx;
|
text-align: center;
|
}
|
|
/* 通用按钮样式 */
|
.btn {
|
width: 100%;
|
padding: 24rpx 0;
|
font-size: 32rpx;
|
font-weight: bold;
|
border-radius: 12rpx;
|
text-align: center;
|
transition: all 0.3s ease;
|
}
|
|
/* 主要按钮样式 - 可以报名 */
|
.btn-primary {
|
background: linear-gradient(90deg, #1976d2, #42a5f5);
|
color: #ffffff;
|
box-shadow: 0 4rpx 12rpx rgba(25, 118, 210, 0.3);
|
}
|
|
.btn-primary:active {
|
transform: translateY(2rpx);
|
box-shadow: 0 2rpx 8rpx rgba(25, 118, 210, 0.3);
|
}
|
|
/* 次要按钮样式 - 已报名等状态 */
|
.btn-secondary {
|
background: #f5f5f5;
|
color: #666666;
|
border: 2rpx solid #e0e0e0;
|
}
|
|
.btn-secondary:active {
|
background: #eeeeee;
|
}
|
|
/* 禁用按钮样式 - 报名已结束、人数已满等 */
|
.btn-disabled {
|
background: #f5f5f5 !important;
|
color: #cccccc !important;
|
cursor: not-allowed;
|
box-shadow: none !important;
|
border: 2rpx solid #f0f0f0;
|
}
|
|
.btn-disabled:active {
|
transform: none !important;
|
box-shadow: none !important;
|
}
|
|
/* 保持原有样式兼容性 */
|
.register-btn {
|
background: linear-gradient(90deg, #1976d2, #42a5f5);
|
color: #ffffff;
|
box-shadow: 0 4rpx 12rpx rgba(25, 118, 210, 0.3);
|
}
|
|
.status-btn {
|
background: #f5f5f5;
|
color: #666666;
|
border: 2rpx solid #e0e0e0;
|
}
|
|
.disabled-btn {
|
background: #f5f5f5;
|
color: #cccccc;
|
cursor: not-allowed;
|
}
|
|
/* 加载状态样式 */
|
.loading-wrapper {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
padding: 120rpx 0;
|
}
|
|
.loading-text {
|
margin-top: 20rpx;
|
font-size: 28rpx;
|
color: #999999;
|
}
|
|
/* 视频预览弹窗样式 */
|
.media-preview-modal {
|
position: fixed;
|
top: 0;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
background: rgba(0, 0, 0, 0.9);
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
z-index: 1000;
|
}
|
|
.modal-content {
|
position: relative;
|
width: 90%;
|
max-width: 600rpx;
|
}
|
|
.preview-video {
|
width: 100%;
|
height: auto;
|
border-radius: 12rpx;
|
}
|
|
.close-btn {
|
position: absolute;
|
top: -80rpx;
|
right: 0;
|
width: 60rpx;
|
height: 60rpx;
|
background: rgba(255, 255, 255, 0.2);
|
border-radius: 50%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
color: #ffffff;
|
font-size: 32rpx;
|
font-weight: bold;
|
}
|
|
/* 页面底部留白,避免被底部操作栏遮挡 */
|
.container {
|
padding-bottom: 140rpx;
|
}
|
|
/* 响应式适配 */
|
@media screen and (max-width: 375px) {
|
.media-swiper {
|
height: 450rpx;
|
}
|
|
.activity-title {
|
font-size: 36rpx;
|
}
|
|
.bottom-actions {
|
padding: 16rpx;
|
}
|
|
.register-btn,
|
.status-btn,
|
.disabled-btn {
|
padding: 20rpx 0;
|
font-size: 28rpx;
|
}
|
}
|
|
@media screen and (min-width: 414px) {
|
.media-swiper {
|
height: 550rpx;
|
}
|
|
.activity-title {
|
font-size: 44rpx;
|
}
|
}
|