/* ========================================== 个人中心页面 - 浅色高级感设计 ========================================== */ .page-container { min-height: 100vh; background: var(--bg-page); padding-bottom: 120rpx; position: relative; overflow: hidden; } /* 顶部装饰背景 */ .hero-bg { position: absolute; top: 0; left: 0; right: 0; height: 480rpx; background: transparent; pointer-events: none; } .hero-pattern { display: none; } /* 用户信息区域 */ .user-section { position: relative; z-index: 1; padding: 48rpx 24rpx 24rpx; } /* ========================================== 已登录 - 个人资料卡片 ========================================== */ .profile-card { display: flex; flex-direction: column; align-items: center; padding: 52rpx 32rpx 44rpx; background: var(--bg-white); border-radius: 24rpx; box-shadow: 0 4rpx 24rpx rgba(0, 0, 0, 0.06); margin-bottom: 24rpx; border: 1rpx solid rgba(0, 0, 0, 0.04); animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1); } /* 头像容器 - 已登录 */ .avatar-wrapper { position: relative; width: 160rpx; height: 160rpx; margin-bottom: 20rpx; } .avatar-xl { width: 160rpx; height: 160rpx; border-radius: 50%; border: 4rpx solid var(--bg-white); box-shadow: 0 8rpx 32rpx rgba(255, 107, 53, 0.2); box-sizing: border-box; } .avatar-ring { position: absolute; top: -12rpx; left: -12rpx; width: 184rpx; height: 184rpx; border: 2rpx dashed var(--primary); border-radius: 50%; opacity: 0.4; animation: spin 20s linear infinite; box-sizing: border-box; } .user-info { text-align: center; width: 100%; } .nickname { font-size: 36rpx; font-weight: 700; color: var(--text-primary); display: block; margin-bottom: 20rpx; letter-spacing: 1rpx; } /* 数据统计区 */ .user-stats { display: flex; align-items: center; justify-content: center; padding: 20rpx 24rpx; background: var(--bg-soft); border-radius: var(--radius-lg); } .stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 16rpx; } .stat-value { font-size: 36rpx; font-weight: 700; color: var(--text-primary); line-height: 1.2; } .stat-value.highlight { color: var(--primary); } .stat-label { font-size: 22rpx; color: var(--text-muted); margin-top: 4rpx; } .stat-divider { width: 1rpx; height: 48rpx; background: var(--border-light); flex-shrink: 0; } /* ========================================== 会员码卡片 - 优化布局 ========================================== */ .member-card { position: relative; margin-bottom: 20rpx; border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-white); box-shadow: var(--shadow-md); animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards; } .member-card-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #fff8f5 0%, #ffffff 50%, #fff5f0 100%); } .member-card-content { position: relative; display: flex; align-items: center; padding: 28rpx 24rpx; } .member-icon { width: 80rpx; height: 80rpx; border-radius: 50%; background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-primary); flex-shrink: 0; margin-right: 20rpx; } .member-icon image { width: 40rpx; height: 40rpx; filter: brightness(10); } .member-info { flex: 1; min-width: 0; overflow: hidden; } .member-title { display: block; font-size: 22rpx; color: var(--text-muted); margin-bottom: 4rpx; } .member-code { display: block; font-size: 28rpx; font-weight: 700; color: var(--text-primary); letter-spacing: 1rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .member-action { display: flex; align-items: center; gap: 4rpx; padding: 10rpx 16rpx; background: var(--primary-soft); border-radius: var(--radius-full); flex-shrink: 0; margin-left: 12rpx; } .action-text { font-size: 22rpx; color: var(--primary); font-weight: 500; white-space: nowrap; } .action-arrow { font-size: 24rpx; color: var(--primary); font-weight: 300; } .scan-hint { position: relative; padding: 12rpx 24rpx; background: linear-gradient(90deg, var(--primary-soft), #fff8f5); text-align: center; font-size: 22rpx; color: var(--primary); border-top: 1rpx solid rgba(255, 107, 53, 0.1); } /* ========================================== 未登录卡片 ========================================== */ .login-card { display: flex; flex-direction: column; align-items: center; padding: 48rpx 40rpx; background: var(--bg-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); margin-bottom: 24rpx; } /* 头像容器 - 未登录 */ .login-avatar-wrapper { position: relative; width: 160rpx; height: 160rpx; margin-bottom: 28rpx; } .login-avatar { width: 160rpx; height: 160rpx; border-radius: 50%; border: 4rpx solid var(--border-light); box-sizing: border-box; } .login-avatar-pulse { position: absolute; top: -12rpx; left: -12rpx; width: 184rpx; height: 184rpx; border: 2rpx dashed var(--primary); border-radius: 50%; opacity: 0.4; animation: spin 15s linear infinite; box-sizing: border-box; } .login-content { text-align: center; margin-bottom: 32rpx; } .login-title { display: block; font-size: 36rpx; font-weight: 700; color: var(--text-primary); margin-bottom: 8rpx; } .login-subtitle { display: block; font-size: 24rpx; color: var(--text-muted); } .login-btn-primary { width: 100%; height: 96rpx; display: flex; align-items: center; justify-content: center; gap: 12rpx; background: var(--primary-gradient); border: none; border-radius: var(--radius-full); margin-bottom: 16rpx; box-shadow: var(--shadow-primary); white-space: nowrap; padding: 0 40rpx; box-sizing: border-box; } .login-btn-primary .btn-icon { width: 32rpx; height: 32rpx; flex-shrink: 0; display: block; } .login-btn-primary .btn-text { font-size: 30rpx; font-weight: 600; color: var(--text-white); letter-spacing: 1rpx; white-space: nowrap; } .login-btn-secondary { width: 100%; height: 84rpx; background: var(--bg-soft); border: none; border-radius: var(--radius-full); color: var(--text-secondary); font-size: 28rpx; } /* ========================================== 天梯信息区域 ========================================== */ .ladder-section { margin: 0 24rpx 20rpx; background: var(--bg-white); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards; } .section-header { display: flex; align-items: center; justify-content: space-between; padding: 20rpx 24rpx; background: linear-gradient(90deg, #fff8f5, var(--bg-white)); border-bottom: 1rpx solid var(--border-soft); } .section-title { font-size: 28rpx; font-weight: 600; color: var(--text-primary); } .section-badge { font-size: 20rpx; color: var(--primary); background: var(--primary-soft); padding: 4rpx 12rpx; border-radius: var(--radius-full); } .ladder-stats { padding: 24rpx; } .ladder-stat-item { display: flex; align-items: center; gap: 16rpx; margin-bottom: 20rpx; } .stat-icon { padding: 8rpx 16rpx; border-radius: var(--radius-full); font-size: 22rpx; font-weight: 600; color: #fff; } .stat-icon.lv1 { background: linear-gradient(135deg, #4caf50, #8bc34a); } .stat-icon.lv2 { background: linear-gradient(135deg, #2196f3, #03a9f4); } .stat-icon.lv3 { background: linear-gradient(135deg, #ff9800, #ffc107); } .stat-icon.lv4 { background: linear-gradient(135deg, #e91e63, #ff5722); } .stat-icon.lv5 { background: linear-gradient(135deg, #9c27b0, #673ab7); } .stat-name { font-size: 30rpx; font-weight: 600; color: var(--text-primary); } .ladder-progress { margin-bottom: 20rpx; } .progress-info { display: flex; justify-content: space-between; margin-bottom: 10rpx; } .progress-label { font-size: 22rpx; color: var(--text-muted); } .progress-value { font-size: 26rpx; font-weight: 700; color: var(--primary); } .progress-bar { height: 10rpx; background: var(--bg-soft); border-radius: 5rpx; overflow: hidden; } .progress-fill { height: 100%; background: var(--primary-gradient); border-radius: 5rpx; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); max-width: 100%; } .ladder-record { display: flex; justify-content: space-between; padding-top: 20rpx; border-top: 1rpx solid var(--border-soft); } .record-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .record-value { display: block; font-size: 32rpx; font-weight: 700; color: var(--text-primary); margin-bottom: 4rpx; } .record-value.win { color: var(--accent); } .record-value.rate { color: var(--primary); } .record-label { font-size: 20rpx; color: var(--text-muted); } /* ========================================== 提示卡片 ========================================== */ .notice-card { display: flex; align-items: flex-start; gap: 16rpx; margin: 0 24rpx 20rpx; padding: 24rpx; background: #fffbf5; border: 1rpx solid #ffe8d5; border-radius: var(--radius-lg); animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards; } .notice-icon { width: 72rpx; height: 72rpx; background: var(--primary-gradient-soft); border-radius: 20rpx; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .notice-icon-img { width: 40rpx; height: 40rpx; display: block; } .notice-content { flex: 1; } .notice-title { display: block; font-size: 26rpx; font-weight: 600; color: #b7791f; margin-bottom: 6rpx; } .notice-desc { display: block; font-size: 22rpx; color: #c68a42; line-height: 1.5; } /* ========================================== 功能菜单 - 网格布局 ========================================== */ .menu-section { margin: 0 24rpx; animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards; } .menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12rpx; } .menu-item { display: flex; flex-direction: column; align-items: center; padding: 24rpx 12rpx; background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .menu-item:active { transform: scale(0.94); box-shadow: none; } .menu-icon { width: 72rpx; height: 72rpx; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12rpx; } .menu-icon.history { background: linear-gradient(135deg, #e3f2fd, #bbdefb); } .menu-icon.points { background: linear-gradient(135deg, #fff8e1, #ffecb3); } .menu-icon.order { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); } .menu-icon.store { background: linear-gradient(135deg, #fff3e0, #ffe0b2); } .menu-icon image { width: 36rpx; height: 36rpx; } .menu-text { font-size: 22rpx; color: var(--text-secondary); font-weight: 500; } /* ========================================== 会员码弹窗 - 高级感设计 ========================================== */ .qrcode-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0); display: flex; align-items: center; justify-content: center; z-index: 999; visibility: hidden; transition: all 0.35s ease; } .qrcode-overlay.show { visibility: visible; background: rgba(0, 0, 0, 0.5); } .qrcode-modal { width: 85%; max-width: 600rpx; background: var(--bg-white); border-radius: var(--radius-xl); overflow: hidden; transform: scale(0.85) translateY(40rpx); opacity: 0; transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.15); } .qrcode-modal.show { transform: scale(1) translateY(0); opacity: 1; } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24rpx 28rpx; background: linear-gradient(90deg, #fff8f5, var(--bg-white)); border-bottom: 1rpx solid var(--border-soft); } .modal-title { font-size: 30rpx; font-weight: 600; color: var(--text-primary); } .modal-close { width: 52rpx; height: 52rpx; display: flex; align-items: center; justify-content: center; font-size: 32rpx; color: var(--text-muted); background: var(--bg-soft); border-radius: 50%; transition: all 0.2s; } .modal-close:active { background: var(--border-light); transform: scale(0.9); } .qrcode-wrapper { position: relative; padding: 40rpx; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); } .qrcode-border { width: 320rpx; height: 320rpx; background: #ffffff; border-radius: var(--radius-lg); padding: 16rpx; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; position: relative; } .qrcode-image { width: 288rpx; height: 288rpx; } .qrcode-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 288rpx; height: 288rpx; } .loading-spinner { width: 48rpx; height: 48rpx; border: 4rpx solid var(--border-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 16rpx; } .loading-text { font-size: 24rpx; color: var(--text-muted); } .qrcode-corners { position: absolute; top: 32rpx; left: 32rpx; right: 32rpx; bottom: 32rpx; pointer-events: none; } .corner { position: absolute; width: 40rpx; height: 40rpx; border-color: var(--primary); border-style: solid; } .corner.tl { top: 0; left: 0; border-width: 6rpx 0 0 6rpx; border-radius: 10rpx 0 0 0; } .corner.tr { top: 0; right: 0; border-width: 6rpx 6rpx 0 0; border-radius: 0 10rpx 0 0; } .corner.bl { bottom: 0; left: 0; border-width: 0 0 6rpx 6rpx; border-radius: 0 0 0 10rpx; } .corner.br { bottom: 0; right: 0; border-width: 0 6rpx 6rpx 0; border-radius: 0 0 10rpx 0; } .qrcode-info { text-align: center; padding: 24rpx 28rpx; } .code-label { display: block; font-size: 22rpx; color: var(--text-muted); margin-bottom: 6rpx; } .code-value { display: block; font-size: 36rpx; font-weight: 700; color: var(--primary); letter-spacing: 4rpx; } .qrcode-tips { padding: 20rpx 28rpx; background: var(--primary-soft); border-top: 1rpx solid rgba(255, 107, 53, 0.1); } .tip-item { display: flex; align-items: center; justify-content: center; gap: 10rpx; } .tip-icon { width: 24rpx; height: 24rpx; display: block; } .tip-text { font-size: 24rpx; color: var(--primary); } /* ========================================== 头像编辑标识 ========================================== */ .avatar-edit-badge { position: absolute; bottom: 4rpx; right: 4rpx; width: 40rpx; height: 40rpx; background: var(--bg-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); z-index: 2; } .edit-icon { font-size: 20rpx; } /* ========================================== 完善资料弹窗 ========================================== */ .profile-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0); display: flex; align-items: center; justify-content: center; z-index: 1000; visibility: hidden; transition: all 0.35s ease; } .profile-overlay.show { visibility: visible; background: rgba(0, 0, 0, 0.55); } .profile-modal { width: 88%; max-width: 640rpx; background: var(--bg-white); border-radius: var(--radius-xl); overflow: hidden; transform: scale(0.85) translateY(40rpx); opacity: 0; transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 24rpx 80rpx rgba(0, 0, 0, 0.2); } .profile-modal.show { transform: scale(1) translateY(0); opacity: 1; } .profile-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 28rpx 32rpx; background: linear-gradient(90deg, #fff8f5, var(--bg-white)); border-bottom: 1rpx solid var(--border-soft); } .profile-modal-title { font-size: 32rpx; font-weight: 600; color: var(--text-primary); } .profile-modal-close { width: 52rpx; height: 52rpx; display: flex; align-items: center; justify-content: center; font-size: 36rpx; color: var(--text-muted); background: var(--bg-soft); border-radius: 50%; transition: all 0.2s; } .profile-modal-close:active { background: var(--border-light); transform: scale(0.9); } .profile-modal-body { padding: 32rpx; } .profile-tips { display: flex; align-items: center; gap: 12rpx; padding: 20rpx 24rpx; background: #fffbf5; border: 1rpx solid #ffe8d5; border-radius: var(--radius-lg); margin-bottom: 32rpx; } .tips-icon { width: 32rpx; height: 32rpx; display: block; } .tips-text { font-size: 24rpx; color: #b7791f; line-height: 1.4; } /* 头像选择区域 */ .profile-avatar-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 32rpx; } .profile-label { font-size: 26rpx; font-weight: 500; color: var(--text-secondary); margin-bottom: 20rpx; align-self: flex-start; } .avatar-choose-btn { position: relative; width: 160rpx; height: 160rpx; padding: 0; margin: 0; border: none; background: transparent; border-radius: 50%; overflow: visible; } .avatar-choose-btn::after { display: none; } .profile-avatar-preview { width: 160rpx; height: 160rpx; border-radius: 50%; border: 4rpx solid var(--primary-soft); box-sizing: border-box; background: var(--bg-soft); } /* 头像编辑小图标 - 右下角 */ .avatar-choose-badge { position: absolute; bottom: 0; right: 0; width: 48rpx; height: 48rpx; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4rpx 12rpx rgba(255, 107, 53, 0.3); border: 3rpx solid #fff; } .avatar-choose-badge .choose-icon { width: 24rpx; height: 24rpx; display: block; } .avatar-tip { font-size: 22rpx; color: var(--text-muted); margin-top: 12rpx; } /* 昵称输入区域 */ .profile-nickname-section { display: flex; flex-direction: column; } .nickname-input { height: 96rpx; padding: 0 24rpx; background: var(--bg-soft); border: 2rpx solid var(--border-light); border-radius: var(--radius-lg); font-size: 30rpx; color: var(--text-primary); transition: all 0.2s; } .nickname-input:focus { border-color: var(--primary); background: var(--bg-white); } .nickname-input::placeholder { color: var(--text-muted); } /* 弹窗底部按钮 */ .profile-modal-footer { display: flex; gap: 20rpx; padding: 24rpx 32rpx 32rpx; background: var(--bg-white); } .profile-btn-cancel, .profile-btn-confirm { flex: 1; height: 88rpx; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); font-size: 28rpx; font-weight: 600; border: none; transition: all 0.2s; } .profile-btn-cancel { background: var(--bg-soft); color: var(--text-secondary); } .profile-btn-cancel:active { background: var(--border-light); } .profile-btn-confirm { background: var(--primary-gradient); color: #fff; box-shadow: var(--shadow-primary); } .profile-btn-confirm:active { transform: scale(0.96); box-shadow: none; }