index.less 5.44 KB
.activities-cover-container {
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

// 海报区域
.poster-section {
    position: relative;
    width: 100%;
    height: 500rpx;
    overflow: hidden;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 60rpx 40rpx 40rpx;
    color: white;
}

.activity-title {
    font-size: 48rpx;
    font-weight: bold;
    margin-bottom: 16rpx;
    text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.5);
}

.activity-subtitle {
    font-size: 28rpx;
    margin-bottom: 12rpx;
    opacity: 0.9;
}

.activity-date {
    font-size: 24rpx;
    opacity: 0.8;
    display: flex;
    align-items: center;

    &::before {
        content: '📅';
        margin-right: 8rpx;
    }
}

// 分享按钮
.share-button {
    position: absolute;
    top: 40rpx;
    right: 40rpx;
    width: 80rpx;
    height: 80rpx;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32rpx;
    z-index: 10;
    
    &:active {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

// 详情区域
.details-section {
    flex: 1;
    padding: 40rpx;
    background-color: white;
}

.section-title {
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    margin: 40rpx 0 24rpx 0;
    position: relative;

    &:first-child {
        margin-top: 0;
    }

    &::before {
        content: '';
        position: absolute;
        left: -16rpx;
        top: 50%;
        transform: translateY(-50%);
        width: 6rpx;
        height: 24rpx;
        background-color: #1890ff;
        border-radius: 3rpx;
    }
}

.activity-description {
    font-size: 28rpx;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20rpx;
}

.rules-list {
    margin-bottom: 20rpx;
}

.rule-item {
    font-size: 26rpx;
    line-height: 1.5;
    color: #666;
    margin-bottom: 16rpx;
    padding-left: 20rpx;
    position: relative;

    &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20rpx;
        width: 8rpx;
        height: 8rpx;
        background-color: #1890ff;
        border-radius: 50%;
    }
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 16rpx;
}

.reward-item {
    display: flex;
    align-items: center;
    padding: 20rpx;
    background-color: #f8f9fa;
    border-radius: 12rpx;
    border-left: 6rpx solid #52c41a;
}

.reward-icon {
    font-size: 32rpx;
    margin-right: 16rpx;
}

.reward-text {
    font-size: 26rpx;
    color: #333;
    flex: 1;
}

// 底部区域
.bottom-section {
    padding: 40rpx;
    padding-bottom: 180rpx; // 为底部导航留出空间
    background-color: white;
    border-top: 1rpx solid #f0f0f0;
}

.location-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24rpx;
    background-color: #fff7e6;
    border: 1rpx solid #ffd591;
    border-radius: 12rpx;
    margin-bottom: 32rpx;
}

.tip-icon {
    font-size: 32rpx;
    margin-right: 12rpx;
}

.tip-text {
    font-size: 26rpx;
    color: #d46b08;
}

.join-button {
    width: 100%;
    height: 88rpx;
    border-radius: 44rpx;
    font-size: 32rpx;
    font-weight: bold;

    &.nut-button--primary {
        background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
        border: none;
        box-shadow: 0 8rpx 24rpx rgba(24, 144, 255, 0.3);

        &:active {
            transform: translateY(2rpx);
            box-shadow: 0 4rpx 12rpx rgba(24, 144, 255, 0.3);
        }
    }
}

// 弹窗样式
.share-popup {
    .nut-popup__content {
        border-radius: 24rpx 24rpx 0 0;
        padding: 40rpx;
    }
}

.share-title {
    font-size: 32rpx;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40rpx;
    color: #333;
}

.share-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40rpx;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20rpx;
    border-radius: 12rpx;
    
    &:active {
        background-color: #f5f5f5;
    }
}

.share-icon {
    width: 80rpx;
    height: 80rpx;
    margin-bottom: 16rpx;
    border-radius: 12rpx;
    background-color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36rpx;
}

.share-text {
    font-size: 24rpx;
    color: #666;
}

.cancel-button {
    width: 100%;
    height: 88rpx;
    border-radius: 44rpx;
    font-size: 32rpx;
    background-color: #f5f5f5;
    color: #666;
    border: none;
}

// 海报预览弹窗
.poster-preview-popup {
    .nut-popup__content {
        width: 90%;
        max-width: 600rpx;
        border-radius: 24rpx;
        padding: 40rpx;
        background-color: white;
    }
}

.poster-preview {
    width: 100%;
    border-radius: 12rpx;
    margin-bottom: 40rpx;
}

.preview-actions {
    display: flex;
    gap: 20rpx;
}

.preview-button {
    flex: 1;
    height: 80rpx;
    border-radius: 40rpx;
    font-size: 28rpx;
    
    &.primary {
        background-color: #1890ff;
        color: white;
        border: none;
    }
    
    &.secondary {
        background-color: #f5f5f5;
        color: #666;
        border: none;
    }
 }

.join-button {
    &.nut-button--loading {
        opacity: 0.7;
    }
}