index.less 5.73 KB
.activities-cover-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

// 背景图片
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh - 150rpx); // 减去底部区域的高度,确保背景图不被遮挡
  // height: calc(100vh); // 减去底部区域的高度,确保背景图不被遮挡
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

// 为容器添加背景色,避免下方空白
// .activities-cover-container::before {
//     content: '';
//     position: absolute;
//     top: 0;
//     left: 0;
//     width: 100%;
//     height: 100%;
//     background: linear-gradient(180deg, #f0f8ff 0%, #e6f3ff 50%, #ddeeff 100%);
//     z-index: 0;
// }

// 分享按钮包装器
.share-button-wrapper {
  position: absolute;
  top: 40rpx;
  right: 40rpx;
  z-index: 10;
}

// 底部区域
.bottom-section {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40rpx;
  padding-bottom: 180rpx; // 为底部导航留出空间
  // background: linear-gradient(
  //     transparent 0%,
  //     rgba(0, 0, 0, 0.1) 20%,
  //     rgba(0, 0, 0, 0.3) 50%,
  //     rgba(0, 0, 0, 0.6) 80%,
  //     rgba(0, 0, 0, 0.8) 100%
  // );
  // backdrop-filter: blur(30rpx);
  // -webkit-backdrop-filter: blur(30rpx);
  z-index: 5;

  // 增加渐变高度,让过渡更自然
  min-height: 300rpx;
}

.location-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24rpx;
  background-color: rgba(255, 247, 230, 0.95);
  border: 1rpx solid rgba(255, 213, 145, 0.9);
  border-radius: 16rpx;
  margin-bottom: 32rpx;
  backdrop-filter: blur(20rpx);
  -webkit-backdrop-filter: blur(20rpx);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 4rpx 16rpx rgba(255, 213, 145, 0.3),
    0 2rpx 8rpx rgba(0, 0, 0, 0.1);

  &:active {
    background-color: rgba(255, 247, 230, 0.8);
    transform: scale(0.98);
    box-shadow:
      0 2rpx 8rpx rgba(255, 213, 145, 0.2),
      0 1rpx 4rpx rgba(0, 0, 0, 0.1);
  }

  .tip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8rpx;
  }
}

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

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

.tip-retry {
  font-size: 22rpx;
  color: #1890ff;
  text-decoration: underline;
}

.location-error {
  background-color: rgba(255, 241, 240, 0.95);
  border: 1rpx solid rgba(255, 163, 158, 0.9);
  box-shadow:
    0 4rpx 16rpx rgba(255, 163, 158, 0.3),
    0 2rpx 8rpx rgba(0, 0, 0, 0.1);

  &:active {
    background-color: rgba(255, 241, 240, 0.8);
    box-shadow:
      0 2rpx 8rpx rgba(255, 163, 158, 0.2),
      0 1rpx 4rpx rgba(0, 0, 0, 0.1);
  }

  .tip-text {
    color: #cf1322;
  }
}

.join-button {
  width: 100%;
  height: 88rpx;
  border-radius: 44rpx;
  font-size: 32rpx;
  font-weight: 600;
  box-shadow:
    0 8rpx 32rpx rgba(84, 171, 174, 0.5),
    0 4rpx 16rpx rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15rpx);
  -webkit-backdrop-filter: blur(15rpx);
  border: 1rpx solid rgba(255, 255, 255, 0.2);

  &:active {
    transform: translateY(2rpx);
    box-shadow:
      0 4rpx 16rpx rgba(84, 171, 174, 0.4),
      0 2rpx 8rpx rgba(0, 0, 0, 0.2);
  }

  &.nut-button--primary {
    background: linear-gradient(135deg, rgba(84, 171, 174, 0.95) 0%, rgba(74, 151, 154, 0.95) 100%);
    border: 1rpx solid rgba(255, 255, 255, 0.3);
    box-shadow:
      0 8rpx 32rpx rgba(84, 171, 174, 0.4),
      0 4rpx 16rpx rgba(0, 0, 0, 0.2);
    color: white;
    text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.2);

    &:active {
      transform: translateY(2rpx);
      box-shadow:
        0 4rpx 16rpx rgba(84, 171, 174, 0.3),
        0 2rpx 8rpx rgba(0, 0, 0, 0.2);
    }
  }

  // 禁用状态样式 - 覆盖NutUI默认的半透明效果
  &.nut-button--disabled {
    opacity: 1 !important; // 覆盖默认的透明度
    background: #cccccc !important; // 实心灰色背景
    color: #fff !important; // 深灰色文字
    border: 1rpx solid #ccc !important;
    box-shadow: 0 4rpx 16rpx rgba(204, 204, 204, 0.3) !important;

    &:active {
      transform: none; // 禁用时不响应点击效果
      box-shadow: 0 4rpx 16rpx rgba(204, 204, 204, 0.3) !important;
    }
  }
}

// 弹窗样式
.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;
  }
}