.container { min-height: 100vh; background: #f7f7f7; padding: 30rpx 24rpx; box-sizing: border-box; } /* 顶部邀请卡片 */ .invite-card { background: linear-gradient(135deg, #ff4d4f, #ff7875); border-radius: 24rpx; padding: 40rpx 30rpx; color: #fff; box-shadow: 0 8rpx 24rpx rgba(255, 77, 79, 0.2); margin-bottom: 24rpx; } .card-header { margin-bottom: 40rpx; } .header-title { margin-bottom: 30rpx; } .header-title .title { font-size: 40rpx; font-weight: 600; margin-bottom: 12rpx; display: block; } .header-title .subtitle { font-size: 26rpx; opacity: 0.9; } .header-rewards { display: flex; align-items: center; justify-content: space-around; background: rgba(255, 255, 255, 0.1); border-radius: 16rpx; padding: 24rpx; } .reward-item { display: flex; flex-direction: column; align-items: center; flex: 1; } .reward-value { font-size: 44rpx; font-weight: 600; margin-bottom: 8rpx; } .reward-label { font-size: 24rpx; opacity: 0.9; } .reward-divider { width: 2rpx; height: 60rpx; background: rgba(255, 255, 255, 0.2); margin: 0 30rpx; } .card-body { background: rgba(255, 255, 255, 0.1); border-radius: 16rpx; padding: 24rpx; } .invite-code-box { margin-bottom: 24rpx; } .code-title { font-size: 26rpx; margin-bottom: 16rpx; opacity: 0.9; } .code-content { display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.1); border-radius: 12rpx; padding: 20rpx; } .code { font-size: 36rpx; font-weight: 600; letter-spacing: 4rpx; } .copy-btn { background: #fff; color: #ff4d4f; font-size: 26rpx; padding: 8rpx 24rpx; border-radius: 30rpx; margin: 0; line-height: 1.6; } .share-btn { width: 100%; background: #fff; color: #ff4d4f; font-size: 32rpx; font-weight: 600; border-radius: 40rpx; padding: 20rpx 0; display: flex; align-items: center; justify-content: center; margin: 0; } .share-icon { width: 36rpx; height: 36rpx; margin-right: 12rpx; } /* 数据统计面板 */ .stats-panel { background: #fff; border-radius: 24rpx; padding: 30rpx; display: flex; justify-content: space-around; margin-bottom: 24rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05); } .stats-item { display: flex; flex-direction: column; align-items: center; } .stats-value { font-size: 36rpx; font-weight: 600; color: #333; margin-bottom: 8rpx; } .stats-label { font-size: 24rpx; color: #999; } /* 邀请规则卡片 */ .rules-card { background: #fff; border-radius: 24rpx; padding: 30rpx; margin-bottom: 24rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05); } .rules-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30rpx; font-size: 32rpx; font-weight: 600; color: #333; } .rules-more { font-size: 26rpx; color: #999; font-weight: normal; } .rules-steps { display: flex; align-items: center; justify-content: space-between; } .step-item { display: flex; flex-direction: column; align-items: center; } .step-circle { width: 60rpx; height: 60rpx; background: rgba(255, 77, 79, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ff4d4f; font-weight: 600; margin-bottom: 12rpx; } .step-text { font-size: 24rpx; color: #666; } .step-arrow { width: 40rpx; height: 2rpx; background: #ddd; position: relative; margin: 0 8rpx; top: -20rpx; } .step-arrow::after { content: ''; position: absolute; right: 0; top: -4rpx; width: 10rpx; height: 10rpx; border-top: 2rpx solid #ddd; border-right: 2rpx solid #ddd; transform: rotate(45deg); } /* 邀请记录列表 */ .records-card { background: #fff; border-radius: 24rpx; padding: 30rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05); } .records-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24rpx; font-size: 32rpx; font-weight: 600; color: #333; } .records-count { font-size: 26rpx; color: #999; font-weight: normal; } .friend-list { max-height: 600rpx; overflow-y: auto; } .friend-item { display: flex; align-items: center; padding: 24rpx 0; border-bottom: 2rpx solid #f5f5f5; } .friend-item:last-child { border-bottom: none; } .friend-avatar { width: 80rpx; height: 80rpx; border-radius: 50%; margin-right: 20rpx; background: #f5f5f5; } .friend-info { flex: 1; } .friend-name { font-size: 28rpx; color: #333; margin-bottom: 8rpx; display: block; } .friend-time { font-size: 24rpx; color: #999; } .friend-reward { display: flex; flex-direction: column; align-items: flex-end; } .status-tag { font-size: 22rpx; padding: 4rpx 12rpx; border-radius: 20rpx; margin-bottom: 8rpx; } .status-tag.active { background: rgba(82, 196, 26, 0.1); color: #52c41a; } .status-tag.inactive { background: rgba(255, 77, 79, 0.1); color: #ff4d4f; } .reward-text { font-size: 26rpx; color: #ff4d4f; font-weight: 600; } /* 深色模式适配 */ @media (prefers-color-scheme: dark) { .container { background: #1f1f1f; } .stats-panel, .rules-card, .records-card { background: #2d2d2d; box-shadow: none; } .stats-value { color: #fff; } .stats-label, .rules-more, .records-count { color: #666; } .rules-title, .records-title { color: #fff; } .step-text { color: #999; } .friend-name { color: #fff; } .friend-time { color: #666; } .friend-item { border-bottom-color: #333; } }