/* pages/dashouzhongxin/dashouzhongxin.wxss */ /* =========== 全局样式 =========== */ page { background: linear-gradient(135deg, #121212 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%); min-height: 100vh; color: #FFFFFF; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; background-attachment: fixed; background-size: cover; } .page-container { min-height: 100vh; position: relative; box-sizing: border-box; } /* =========== 未注册状态页面 =========== */ .unregistered-page { display: flex; flex-direction: column; align-items: center; padding-top: 200rpx; min-height: 100vh; box-sizing: border-box; } .status-tip { font-size: 32rpx; color: #FFFFFF; margin-bottom: 80rpx; font-weight: 500; text-align: center; opacity: 0; animation: fadeIn 1s ease-out forwards; line-height: 1.5; padding: 0 40rpx; } .input-container { width: 85%; margin-bottom: 60rpx; box-sizing: border-box; } .invite-input { width: 100%; height: 90rpx; background: rgba(255, 255, 255, 0.1); border-radius: 20rpx; padding: 0 30rpx; font-size: 30rpx; color: #FFFFFF; box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.3); border: 1rpx solid rgba(255, 215, 0, 0.3); transition: all 0.3s; box-sizing: border-box; } .invite-input:focus { border-color: #FFD700; box-shadow: 0 15rpx 40rpx rgba(255, 215, 0, 0.25); transform: translateY(-2rpx); } .placeholder { color: rgba(255, 255, 255, 0.5); font-size: 28rpx; } .register-view-btn { width: 85%; height: 80rpx; background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); border-radius: 40rpx; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 10rpx 30rpx rgba(255, 215, 0, 0.3); transition: all 0.3s ease; margin-top: 20rpx; } .register-view-btn:active { transform: scale(0.98); } .register-text { font-size: 34rpx; font-weight: bold; color: #333; letter-spacing: 4rpx; position: relative; z-index: 2; text-shadow: 0 2rpx 4rpx rgba(255, 255, 255, 0.2); line-height: 80rpx; } .register-glow { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); animation: shine 2s infinite; } /* 一键注册按钮样式 */ .quick-register-btn { width: 85%; height: 80rpx; background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%); border-radius: 40rpx; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 10rpx 30rpx rgba(76, 175, 80, 0.4); transition: all 0.3s ease; margin-top: 20rpx; } .quick-register-btn:active { transform: scale(0.98); } .quick-register-text { font-size: 34rpx; font-weight: bold; color: white; letter-spacing: 4rpx; position: relative; z-index: 2; text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.2); line-height: 80rpx; } .quick-register-glow { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shine 2s infinite; } /* =========== 已注册状态页面 =========== */ .registered-page { padding: 30rpx 25rpx; box-sizing: border-box; } .refresh-btn { position: absolute; top: 30rpx; right: 25rpx; width: 60rpx; height: 60rpx; background: rgba(255, 255, 255, 0.08); border-radius: 50%; box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.25); z-index: 10; display: flex; align-items: center; justify-content: center; border: 1rpx solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; } .refresh-btn:active { transform: rotate(180deg); background: rgba(255, 255, 255, 0.12); } .refresh-icon { font-size: 32rpx; color: #FFD700; font-weight: bold; } /* 头像区域 */ .avatar-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30rpx; margin-top: 40rpx; position: relative; } .avatar-info { display: flex; align-items: center; flex: 1; } .avatar-img { width: 120rpx; height: 120rpx; border-radius: 50%; box-shadow: 0 0 0 3rpx rgba(255, 215, 0, 0.5), 0 8rpx 25rpx rgba(0, 0, 0, 0.4); margin-right: 25rpx; transition: transform 0.3s ease; background: linear-gradient(45deg, #2a2a2a, #1a1a1a); } .avatar-img:active { transform: scale(0.95); } .user-info { margin-left: 25rpx; flex: 1; } .nickname-row { display: flex; align-items: center; margin-bottom: 15rpx; flex-wrap: wrap; } .dashou-nicheng { font-size: 36rpx; font-weight: bold; color: #FFFFFF; margin-right: 15rpx; max-width: 200rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.5); } .chenghao-tag { background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 165, 0, 0.9) 100%); padding: 4rpx 16rpx; border-radius: 20rpx; height: 40rpx; display: flex; align-items: center; justify-content: center; border: 1rpx solid rgba(255, 215, 0, 0.5); box-shadow: 0 4rpx 12rpx rgba(255, 215, 0, 0.3); } .chenghao-text { font-size: 22rpx; font-weight: bold; color: #333; text-shadow: 0 1rpx 1rpx rgba(255, 255, 255, 0.8); letter-spacing: 1rpx; } .uid-row { display: flex; align-items: center; flex-wrap: wrap; } .uid-label { font-size: 26rpx; color: rgba(255, 255, 255, 0.7); margin-right: 10rpx; font-weight: 500; } .uid-value { font-size: 26rpx; color: #FFFFFF; font-family: 'Courier New', monospace; margin-right: 15rpx; background: rgba(255, 255, 255, 0.08); padding: 6rpx 12rpx; border-radius: 8rpx; border: 1rpx solid rgba(255, 255, 255, 0.1); } .copy-btn { display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s ease; width: 50rpx; height: 50rpx; border-radius: 50%; background: rgba(255, 215, 0, 0.1); border: 1rpx solid rgba(255, 215, 0, 0.3); box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2); } .copy-btn:active { transform: scale(0.95); background: rgba(255, 215, 0, 0.2); } .copy-icon { font-size: 28rpx; color: #FFD700; font-weight: 500; } /* 资产区域 */ .assets-section { position: relative; margin-bottom: 30rpx; } .black-card { background: linear-gradient(135deg, rgba(30, 30, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%); border-radius: 20rpx; padding: 30rpx; position: relative; box-shadow: 0 15rpx 40rpx rgba(0, 0, 0, 0.4); overflow: hidden; border: 1rpx solid rgba(255, 215, 0, 0.15); min-height: 180rpx; } .card-header { margin-bottom: 25rpx; } .card-title { font-size: 28rpx; color: #FFD700; letter-spacing: 2rpx; font-weight: bold; } .yongjin-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25rpx; } .yongjin-info { flex: 1; } .asset-label { font-size: 24rpx; color: rgba(255, 255, 255, 0.7); font-weight: 400; margin-bottom: 8rpx; display: block; } .asset-value-container { display: flex; align-items: baseline; } .asset-value { font-size: 48rpx; font-weight: bold; color: #FFD700; font-family: 'Arial', sans-serif; letter-spacing: 1rpx; } .asset-unit { font-size: 28rpx; color: #FFD700; margin-left: 8rpx; font-weight: 500; } .withdraw-view-btn { width: 120rpx; height: 55rpx; background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 165, 0, 0.9) 100%); border-radius: 10rpx; display: flex; align-items: center; justify-content: center; box-shadow: 0 6rpx 20rpx rgba(255, 215, 0, 0.4); transition: all 0.3s ease; border: 1rpx solid rgba(255, 215, 0, 0.3); position: relative; overflow: hidden; } .withdraw-view-btn:active { transform: scale(0.95); } .withdraw-text { font-size: 26rpx; font-weight: bold; color: #333; letter-spacing: 2rpx; position: relative; z-index: 2; text-shadow: 0 1rpx 2rpx rgba(255, 255, 255, 0.5); } .assets-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 25rpx; border-top: 1rpx solid rgba(255, 255, 255, 0.1); } .bottom-item { display: flex; flex-direction: column; align-items: center; flex: 1; } .bottom-label { font-size: 22rpx; color: rgba(255, 255, 255, 0.7); margin-bottom: 8rpx; font-weight: 400; } .bottom-value { font-size: 30rpx; font-weight: bold; color: #FFD700; } .vertical-divider { width: 1rpx; height: 40rpx; background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.5) 50%, transparent); } /* 功能区域 */ .function-section { background: rgba(255, 255, 255, 0.05); border-radius: 20rpx; padding: 30rpx 25rpx; margin-bottom: 30rpx; box-shadow: 0 10rpx 25rpx rgba(0, 0, 0, 0.2); border: 1rpx solid rgba(255, 215, 0, 0.1); } /* 抢单大厅 */ .main-function { display: flex; flex-direction: column; align-items: center; padding: 35rpx 0; border-radius: 20rpx; background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 100, 200, 0.2) 100%); transition: all 0.3s ease; position: relative; overflow: hidden; margin-bottom: 25rpx; border: 1rpx solid rgba(0, 150, 255, 0.3); } .main-function:active { transform: scale(0.98); background: linear-gradient(135deg, rgba(0, 150, 255, 0.3) 0%, rgba(0, 100, 200, 0.3) 100%); } .main-function-icon { font-size: 60rpx; margin-bottom: 20rpx; } .main-function-text { font-size: 32rpx; color: #FFFFFF; font-weight: bold; text-align: center; position: relative; z-index: 2; letter-spacing: 2rpx; } .main-function-glow { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); animation: shine 3s infinite; } /* 第二行:充值和订单 */ .function-grid-second { display: flex; justify-content: space-between; margin-bottom: 20rpx; } .function-grid-second .function-item-second:nth-child(1) { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%); border: 1rpx solid rgba(255, 215, 0, 0.4); box-shadow: 0 8rpx 25rpx rgba(255, 215, 0, 0.3), 0 0 15rpx rgba(255, 215, 0, 0.2); } .function-grid-second .function-item-second:nth-child(1):active { transform: scale(0.96); background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.3) 100%); } .function-grid-second .function-item-second:nth-child(1) .function-icon-second { font-size: 48rpx; color: #FFD700; text-shadow: 0 2rpx 8rpx rgba(255, 215, 0, 0.5), 0 0 15rpx rgba(255, 215, 0, 0.3); animation: goldPulse 2s infinite ease-in-out; } .function-grid-second .function-item-second:nth-child(1) .function-text-second { font-size: 26rpx; font-weight: bold; color: #FFD700; text-shadow: 0 1rpx 3rpx rgba(0, 0, 0, 0.5); letter-spacing: 1rpx; } .function-grid-second .function-item-second:nth-child(1)::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shine 2.5s infinite; } .function-item-second { display: flex; flex-direction: column; align-items: center; padding: 25rpx 0; border-radius: 16rpx; background: rgba(255, 255, 255, 0.08); transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.2); width: 48%; } .function-item-second:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.12); } .function-icon-second { font-size: 44rpx; margin-bottom: 15rpx; } .function-text-second { font-size: 26rpx; color: #FFFFFF; font-weight: 500; text-align: center; position: relative; z-index: 2; } /* 第三行:我的处罚和排行 */ .function-grid-third { display: flex; justify-content: space-between; } .function-item-third { display: flex; flex-direction: column; align-items: center; padding: 22rpx 0; border-radius: 16rpx; background: rgba(255, 255, 255, 0.06); transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2); width: 48%; } .function-item-third:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.09); } .function-icon-third { font-size: 40rpx; margin-bottom: 12rpx; } .function-text-third { font-size: 24rpx; color: rgba(255, 255, 255, 0.9); font-weight: 500; text-align: center; position: relative; z-index: 2; } /* 其他功能区域 */ .other-section { background: rgba(255, 255, 255, 0.05); border-radius: 20rpx; padding: 0 25rpx; box-shadow: 0 10rpx 25rpx rgba(0, 0, 0, 0.2); border: 1rpx solid rgba(255, 215, 0, 0.1); } .other-list { padding: 20rpx 0; } .other-item { display: flex; justify-content: space-between; align-items: center; padding: 28rpx 0; border-bottom: 1rpx solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease; } .other-item:active { background: rgba(255, 215, 0, 0.05); transform: translateX(5rpx); } .other-item:last-child { border-bottom: none; } .other-item-left { display: flex; align-items: center; } .other-icon { font-size: 36rpx; margin-right: 20rpx; } .other-text { font-size: 28rpx; color: #FFFFFF; font-weight: 500; } .arrow-icon { font-size: 36rpx; color: rgba(255, 255, 255, 0.5); font-weight: bold; transition: all 0.3s ease; } .other-item:active .arrow-icon { color: #FFD700; transform: translateX(5rpx); } /* 邀请人专属样式(新增) */ .inviter-avatar { width: 70rpx; height: 70rpx; border-radius: 50%; margin-right: 20rpx; border: 2rpx solid rgba(255, 215, 0, 0.5); box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.4); } .inviter-text-info { display: flex; flex-direction: column; } .inviter-uid-text { font-size: 22rpx; color: rgba(255, 255, 255, 0.5); margin-top: 6rpx; } .contact-badge { background: rgba(255, 215, 0, 0.2); border: 1rpx solid rgba(255, 215, 0, 0.5); color: #FFD700; font-size: 24rpx; padding: 8rpx 20rpx; border-radius: 20rpx; font-weight: 500; transition: all 0.3s; } .contact-badge:active { background: rgba(255, 215, 0, 0.4); } /* 加载遮罩 */ .loading-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(18, 18, 18, 0.9); display: flex; align-items: center; justify-content: center; z-index: 9999; } .loading-content { background: rgba(30, 30, 46, 0.95); padding: 60rpx 80rpx; border-radius: 30rpx; display: flex; flex-direction: column; align-items: center; box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.5); border: 1rpx solid rgba(255, 215, 0, 0.2); } .loading-spinner { width: 80rpx; height: 80rpx; border: 6rpx solid rgba(255, 215, 0, 0.2); border-top: 6rpx solid #FFD700; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 30rpx; } .loading-text { font-size: 28rpx; color: #FFFFFF; font-weight: 500; } /* =========== 动画定义 =========== */ @keyframes fadeIn { from { opacity: 0; transform: translateY(30rpx); } to { opacity: 1; transform: translateY(0); } } @keyframes shine { 0% { left: -100%; } 100% { left: 100%; } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes goldPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 1; } } /* ========== 🆕 称号标签展示区 ========== */ /* ========== 🆕 称号标签展示区 ========== */ .badge-area { width: 100%; margin: 20rpx 0 30rpx 0; padding: 0 20rpx; box-sizing: border-box; } .badge-scroll { width: 100%; max-height: 140rpx; /* 最多两行高度(52*2=104 + 间距36rpx) */ overflow-y: auto; /* 超出自动滚动 */ background: transparent; } .badge-grid { display: flex; flex-wrap: wrap; gap: 8rpx; padding: 6rpx 0; align-items: center; justify-content: flex-start; } .badge-item { flex-shrink: 0; /* 不设宽度限制,由组件自身宽度决定 */ } .other-icon-img { width: 36rpx; height: 36rpx; margin-right: 20rpx; }