133 lines
10 KiB
Plaintext
133 lines
10 KiB
Plaintext
/* 分销中心页面样式 - 1:1还原Web版本 */
|
|
.page { min-height: 100vh; background: #000; padding-bottom: 64rpx; }
|
|
|
|
/* 导航栏 */
|
|
.nav-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(0,0,0,0.9); backdrop-filter: blur(40rpx); display: flex; align-items: center; justify-content: space-between; padding: 0 32rpx; height: 88rpx; }
|
|
.nav-back { width: 64rpx; height: 64rpx; background: #1c1c1e; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
|
|
.back-icon { font-size: 40rpx; color: rgba(255,255,255,0.6); font-weight: 300; }
|
|
.nav-title { font-size: 34rpx; font-weight: 600; color: #fff; }
|
|
.nav-right { display: flex; gap: 16rpx; }
|
|
.nav-btn { width: 64rpx; height: 64rpx; background: #1c1c1e; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28rpx; }
|
|
|
|
.content { padding: 24rpx; width: 100%; box-sizing: border-box; }
|
|
|
|
/* 过期提醒横幅 */
|
|
.expiring-banner { display: flex; align-items: center; gap: 24rpx; padding: 24rpx; background: rgba(255,165,0,0.1); border: 2rpx solid rgba(255,165,0,0.3); border-radius: 24rpx; margin-bottom: 24rpx; }
|
|
.banner-icon { width: 80rpx; height: 80rpx; background: rgba(255,165,0,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40rpx; flex-shrink: 0; }
|
|
.banner-content { flex: 1; }
|
|
.banner-title { font-size: 28rpx; font-weight: 500; color: #fff; display: block; }
|
|
.banner-desc { font-size: 24rpx; color: rgba(255,165,0,0.8); margin-top: 4rpx; display: block; }
|
|
|
|
/* 收益卡片 */
|
|
.earnings-card { position: relative; background: linear-gradient(135deg, rgba(0,206,209,0.15) 0%, rgba(32,178,170,0.1) 50%, rgba(0,139,139,0.05) 100%); border: 2rpx solid rgba(0,206,209,0.2); border-radius: 32rpx; padding: 40rpx; margin-bottom: 24rpx; overflow: hidden; width: 100%; box-sizing: border-box; }
|
|
.earnings-bg { position: absolute; top: -50rpx; right: -50rpx; width: 200rpx; height: 200rpx; background: rgba(0,206,209,0.1); border-radius: 50%; filter: blur(60rpx); }
|
|
.earnings-main { position: relative; }
|
|
.earnings-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32rpx; }
|
|
.earnings-left { display: flex; align-items: center; gap: 16rpx; }
|
|
.wallet-icon { width: 80rpx; height: 80rpx; background: rgba(0,206,209,0.2); border-radius: 20rpx; display: flex; align-items: center; justify-content: center; font-size: 40rpx; }
|
|
.earnings-info { display: flex; flex-direction: column; gap: 4rpx; }
|
|
.earnings-label { font-size: 24rpx; color: rgba(255,255,255,0.6); }
|
|
.commission-rate { font-size: 24rpx; color: #00CED1; font-weight: 500; }
|
|
.earnings-right { text-align: right; }
|
|
.earnings-value { font-size: 56rpx; font-weight: 700; color: #fff; display: block; }
|
|
.pending-text { font-size: 22rpx; color: rgba(255,255,255,0.5); }
|
|
|
|
.withdraw-btn { padding: 24rpx; background: #00CED1; color: #000; font-size: 28rpx; font-weight: 600; text-align: center; border-radius: 24rpx; }
|
|
.withdraw-btn.btn-disabled { background: rgba(0,206,209,0.3); color: rgba(0,0,0,0.5); }
|
|
|
|
/* 数据统计 */
|
|
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16rpx; margin-bottom: 24rpx; width: 100%; box-sizing: border-box; }
|
|
.stat-card { background: #1c1c1e; border-radius: 24rpx; padding: 24rpx 16rpx; text-align: center; }
|
|
.stat-value { font-size: 40rpx; font-weight: 700; color: #fff; display: block; }
|
|
.stat-value.orange { color: #FFA500; }
|
|
.stat-label { font-size: 20rpx; color: rgba(255,255,255,0.5); margin-top: 8rpx; display: block; }
|
|
|
|
/* 推广规则 */
|
|
.rules-card { background: rgba(0,206,209,0.05); border: 2rpx solid rgba(0,206,209,0.2); border-radius: 24rpx; padding: 24rpx; margin-bottom: 24rpx; width: 100%; box-sizing: border-box; }
|
|
.rules-header { display: flex; align-items: center; gap: 16rpx; margin-bottom: 16rpx; }
|
|
.rules-icon { width: 56rpx; height: 56rpx; background: rgba(0,206,209,0.2); border-radius: 16rpx; display: flex; align-items: center; justify-content: center; font-size: 28rpx; }
|
|
.rules-title { font-size: 28rpx; font-weight: 500; color: #fff; }
|
|
.rules-list { padding-left: 8rpx; }
|
|
.rule-item { font-size: 24rpx; color: rgba(255,255,255,0.6); line-height: 1.8; display: block; }
|
|
.rule-item .gold { color: #FFD700; }
|
|
.rule-item .brand { color: #00CED1; }
|
|
|
|
/* 绑定用户卡片 */
|
|
.binding-card { background: #1c1c1e; border-radius: 32rpx; overflow: hidden; margin-bottom: 24rpx; width: 100%; box-sizing: border-box; }
|
|
.binding-header { display: flex; align-items: center; justify-content: space-between; padding: 28rpx 32rpx; border-bottom: 2rpx solid rgba(255,255,255,0.05); }
|
|
.binding-title { display: flex; align-items: center; gap: 12rpx; }
|
|
.binding-icon { font-size: 36rpx; }
|
|
.title-text { font-size: 30rpx; font-weight: 600; color: #fff; }
|
|
.binding-count { font-size: 26rpx; color: rgba(255,255,255,0.5); }
|
|
.toggle-icon { font-size: 24rpx; color: rgba(255,255,255,0.5); }
|
|
|
|
/* Tab切换 */
|
|
.binding-tabs { display: flex; border-bottom: 2rpx solid rgba(255,255,255,0.05); }
|
|
.tab-item { flex: 1; padding: 24rpx 0; text-align: center; font-size: 26rpx; color: rgba(255,255,255,0.5); position: relative; }
|
|
.tab-item.tab-active { color: #00CED1; }
|
|
.tab-item.tab-active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80rpx; height: 4rpx; background: #00CED1; border-radius: 4rpx; }
|
|
|
|
/* 用户列表 */
|
|
.binding-list { max-height: 640rpx; overflow-y: auto; }
|
|
.empty-state { padding: 80rpx 0; text-align: center; }
|
|
.empty-icon { font-size: 64rpx; display: block; margin-bottom: 16rpx; }
|
|
.empty-text { font-size: 26rpx; color: rgba(255,255,255,0.5); }
|
|
|
|
.binding-item { display: flex; align-items: center; padding: 24rpx 32rpx; border-bottom: 2rpx solid rgba(255,255,255,0.05); }
|
|
.binding-item:last-child { border-bottom: none; }
|
|
.user-avatar { width: 80rpx; height: 80rpx; border-radius: 50%; background: rgba(0,206,209,0.2); display: flex; align-items: center; justify-content: center; font-size: 28rpx; font-weight: 600; color: #00CED1; margin-right: 24rpx; flex-shrink: 0; }
|
|
.user-avatar.avatar-converted { background: rgba(76,175,80,0.2); color: #4CAF50; }
|
|
.user-avatar.avatar-expired { background: rgba(158,158,158,0.2); color: #9E9E9E; }
|
|
.user-info { flex: 1; }
|
|
.user-name { font-size: 28rpx; color: #fff; font-weight: 500; display: block; }
|
|
.user-time { font-size: 22rpx; color: rgba(255,255,255,0.5); margin-top: 4rpx; display: block; }
|
|
.user-status { text-align: right; }
|
|
.status-amount { font-size: 28rpx; color: #4CAF50; font-weight: 600; display: block; }
|
|
.status-order { font-size: 22rpx; color: rgba(255,255,255,0.5); }
|
|
.status-tag { font-size: 22rpx; padding: 8rpx 16rpx; border-radius: 16rpx; }
|
|
.status-tag.tag-green { background: rgba(76,175,80,0.2); color: #4CAF50; }
|
|
.status-tag.tag-orange { background: rgba(255,165,0,0.2); color: #FFA500; }
|
|
.status-tag.tag-red { background: rgba(244,67,54,0.2); color: #F44336; }
|
|
|
|
/* 邀请码卡片 */
|
|
.invite-card { background: #1c1c1e; border-radius: 32rpx; padding: 32rpx; margin-bottom: 24rpx; width: 100%; box-sizing: border-box; }
|
|
.invite-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16rpx; }
|
|
.invite-title { font-size: 28rpx; font-weight: 600; color: #fff; }
|
|
.invite-code-box { background: rgba(0,206,209,0.15); padding: 12rpx 24rpx; border-radius: 16rpx; }
|
|
.invite-code { font-size: 26rpx; font-weight: 600; color: #00CED1; font-family: monospace; letter-spacing: 2rpx; }
|
|
.invite-tip { font-size: 24rpx; color: rgba(255,255,255,0.5); }
|
|
.invite-tip .gold { color: #FFD700; }
|
|
.invite-tip .brand { color: #00CED1; }
|
|
|
|
/* 分享区域 */
|
|
.share-section { display: flex; flex-direction: column; gap: 16rpx; width: 100%; }
|
|
.share-item { display: flex; align-items: center; background: #1c1c1e; border-radius: 24rpx; padding: 24rpx 32rpx; border: none; margin: 0; text-align: left; width: 100%; box-sizing: border-box; }
|
|
.share-item::after { border: none; }
|
|
.share-icon { width: 96rpx; height: 96rpx; border-radius: 20rpx; display: flex; align-items: center; justify-content: center; font-size: 48rpx; margin-right: 24rpx; flex-shrink: 0; }
|
|
.share-icon.poster { background: rgba(103,58,183,0.2); }
|
|
.share-icon.wechat { background: rgba(7,193,96,0.2); }
|
|
.share-icon.link { background: rgba(158,158,158,0.2); }
|
|
.share-info { flex: 1; text-align: left; }
|
|
.share-title { font-size: 28rpx; color: #fff; font-weight: 500; display: block; text-align: left; }
|
|
.share-desc { font-size: 22rpx; color: rgba(255,255,255,0.5); margin-top: 4rpx; display: block; text-align: left; }
|
|
.share-arrow { font-size: 28rpx; color: rgba(255,255,255,0.3); flex-shrink: 0; }
|
|
.share-btn-wechat { line-height: normal; font-size: inherit; padding: 24rpx 32rpx !important; margin: 0 !important; width: 100% !important; }
|
|
|
|
/* 弹窗 */
|
|
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(20rpx); display: flex; align-items: flex-end; justify-content: center; z-index: 1000; }
|
|
.modal-content { width: 100%; max-width: 750rpx; background: #1c1c1e; border-radius: 48rpx 48rpx 0 0; padding: 48rpx; padding-bottom: calc(48rpx + env(safe-area-inset-bottom)); animation: slideUp 0.3s ease; }
|
|
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
|
|
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32rpx; }
|
|
.modal-title { font-size: 36rpx; font-weight: 600; color: #fff; }
|
|
.modal-close { width: 64rpx; height: 64rpx; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 28rpx; color: rgba(255,255,255,0.6); }
|
|
|
|
/* 海报弹窗 */
|
|
.poster-modal { padding-bottom: calc(64rpx + env(safe-area-inset-bottom)); }
|
|
.poster-preview { display: flex; justify-content: center; margin: 32rpx 0; padding: 24rpx; background: rgba(0,0,0,0.3); border-radius: 24rpx; }
|
|
.poster-canvas { border-radius: 16rpx; box-shadow: 0 16rpx 48rpx rgba(0,0,0,0.5); }
|
|
.poster-actions { display: flex; gap: 24rpx; margin-bottom: 24rpx; }
|
|
.poster-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12rpx; padding: 28rpx; border-radius: 24rpx; font-size: 30rpx; font-weight: 500; color: #fff; }
|
|
.btn-save { background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%); }
|
|
.btn-icon { font-size: 32rpx; }
|
|
.poster-tip { font-size: 24rpx; color: rgba(255,255,255,0.4); text-align: center; display: block; }
|