.personal-center { min-height: 100vh; background: linear-gradient(180deg, #86D8D0 0%, #a9dfda 30%, #cfe9e7 60%, #ECF8F7 90%); padding-bottom: 40rpx; } /* 淡入动画 */ .fade-in { animation: fadeIn 0.6s ease forwards; opacity: 0; transform: translateY(20rpx); } .fade-in-delay-1 { animation: fadeIn 0.6s 0.2s ease forwards; opacity: 0; transform: translateY(20rpx); } .fade-in-delay-2 { animation: fadeIn 0.6s 0.4s ease forwards; opacity: 0; transform: translateY(20rpx); } @keyframes fadeIn { to { opacity: 1; transform: translateY(0); } } /* 用户信息区域 */ .user-section { padding: 40rpx 30rpx 30rpx; } .user-card { background: white; border-radius: 24rpx; padding: 40rpx 30rpx; box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.08); display: flex; align-items: center; transition: all 0.3s ease; } .user-card:active { transform: scale(0.99); box-shadow: 0 5rpx 20rpx rgba(0, 0, 0, 0.05); } .avatar-btn { position: relative; width: 140rpx; height: 140rpx; margin-right: 30rpx; flex-shrink: 0; padding: 0; background: transparent; border: none; border-radius: 50%; overflow: visible; } .avatar-btn::after { border: none; } .avatar { width: 100%; height: 100%; border-radius: 50%; border: 4rpx solid white; box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .avatar-btn:active .avatar { transform: scale(0.95); } .avatar-edit-tip { position: absolute; bottom: -10rpx; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.7); color: white; font-size: 20rpx; padding: 4rpx 12rpx; border-radius: 20rpx; white-space: nowrap; opacity: 0; transition: all 0.3s ease; } .avatar-btn:hover .avatar-edit-tip { opacity: 1; bottom: -20rpx; } .user-info { flex: 1; } .nickname-section { display: flex; align-items: center; margin-bottom: 16rpx; padding: 8rpx 0; border-radius: 8rpx; transition: all 0.3s ease; } .nickname-section:active { background: rgba(0, 0, 0, 0.05); } .nickname { font-size: 36rpx; font-weight: 700; color: #1e293b; margin-right: 20rpx; max-width: 300rpx; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nickname-section image { width: 26rpx; height: 26rpx; opacity: 0.6; transition: all 0.3s ease; } .nickname-section:active image { opacity: 0.8; transform: scale(1.1); } .user-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16rpx; } .auth-tag { display: flex; align-items: center; padding: 6rpx 16rpx; background: #fef3c7; border-radius: 20rpx; transition: all 0.3s ease; } .auth-tag.verified { background: #d1fae5; } .auth-tag:active { transform: scale(0.95); opacity: 0.8; } .auth-tag text { font-size: 24rpx; color: #92400e; font-weight: 500; } .auth-tag.verified text { color: #065f46; } /* 卡片样式 */ .section-card { background: white; margin: 0 30rpx 30rpx; border-radius: 20rpx; overflow: hidden; box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.05); } .section-header { padding: 30rpx 30rpx 20rpx; border-bottom: 1rpx solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; } .section-title { font-size: 32rpx; font-weight: 600; color: #1e293b; position: relative; padding-left: 20rpx; } .section-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6rpx; height: 24rpx; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 3rpx; } /* 消息行 */ .message-row { display: flex; align-items: center; padding: 30rpx; } .message-item { flex: 1; display: flex; flex-direction: column; align-items: center; transition: all 0.3s ease; } .message-item:active { transform: scale(0.95); opacity: 0.8; } .message-icon-wrapper { position: relative; width: 80rpx; height: 80rpx; margin-bottom: 16rpx; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 50%; border: 1rpx solid #e2e8f0; transition: all 0.3s ease; } .message-item:active .message-icon-wrapper { background: #e2e8f0; } .message-icon { width: 60rpx; height: 60rpx; } .message-label { font-size: 26rpx; color: #475569; font-weight: 500; } .divider { width: 1rpx; height: 60rpx; background: #e2e8f0; margin: 0 40rpx; } /* 功能列表 */ .function-list { padding: 0 30rpx 20rpx; } .function-item { display: flex; align-items: center; justify-content: space-between; padding: 30rpx 0; border-bottom: 1rpx solid #f1f5f9; transition: all 0.3s ease; } .function-item:last-child { border-bottom: none; } .function-item:active { background: #f8fafc; border-radius: 12rpx; } .item-left { display: flex; align-items: center; } .item-icon { width: 40rpx; height: 40rpx; margin-right: 20rpx; } .item-title { font-size: 30rpx; color: #1e293b; font-weight: 500; } .logout-title { color: #ef4444; } .item-status { font-size: 26rpx; color: #f59e0b; font-weight: 500; } .item-status.verified { color: #10b981; } /* 反馈弹窗 */ .feedback-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; /* 防止未显示时误触 */ } .feedback-modal.show { opacity: 1; visibility: visible; pointer-events: auto; } .modal-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4rpx); } .modal-content { position: relative; width: 90%; max-width: 660rpx; background: white; border-radius: 24rpx; overflow: hidden; box-shadow: 0 30rpx 80rpx rgba(0, 0, 0, 0.2); transform: translateY(100rpx); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .feedback-modal.show .modal-content { transform: translateY(0); } .modal-header { padding: 40rpx 40rpx 20rpx; border-bottom: 1rpx solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; } .modal-title { font-size: 36rpx; font-weight: 700; color: #1e293b; } .modal-close { width: 40rpx; height: 40rpx; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; } .modal-close:active { background: #e2e8f0; transform: scale(0.9); } .modal-close image { width: 36rpx; height: 36rpx; filter: brightness(0%); } /* 反馈输入框 - iOS修复 */ .modal-body { padding: 40rpx; } .feedback-input { width: 100%; min-height: 240rpx; padding: 24rpx; box-sizing: border-box; background: #f8fafc; border: 2rpx solid #e2e8f0; border-radius: 16rpx; font-size: 28rpx; line-height: 1.5; color: #1e293b; transition: all 0.3s ease; -webkit-user-select: auto; /* iOS修复 */ } .feedback-input:focus { border-color: #667eea; background: white; box-shadow: 0 0 0 4rpx rgba(102, 126, 234, 0.1); } .feedback-input[disabled] { opacity: 0.8; /* 禁用状态样式 */ } .placeholder { color: #94a3b8; } .char-count { text-align: right; margin-top: 12rpx; font-size: 24rpx; display: flex; justify-content: flex-end; align-items: baseline; gap: 4rpx; } .char-count .current { color: #1e293b; font-weight: 500; } .char-count .total { color: #94a3b8; } .modal-footer { padding: 0 40rpx 40rpx; } .submit-btn { width: 100%; padding: 5rpx 0; background: #e2e8f0; border-radius: 44rpx; font-size: 32rpx; font-weight: 600; color: #94a3b8; border: none; transition: all 0.3s ease; } .submit-btn.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; box-shadow: 0 8rpx 24rpx rgba(102, 126, 234, 0.3); } .submit-btn.active:active { transform: scale(0.98); opacity: 0.9; } .submit-btn[disabled] { opacity: 0.6; } /* 昵称修改弹窗 */ .nickname-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; } .nickname-modal.show { opacity: 1; visibility: visible; pointer-events: auto; } .nickname-modal .modal-content { width: 600rpx; background: white; border-radius: 20rpx; overflow: hidden; box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.2); transform: scale(0.8); transition: all 0.3s ease; } .nickname-modal.show .modal-content { transform: scale(1); } .nickname-modal .modal-header { padding: 40rpx 40rpx 20rpx; border-bottom: 1rpx solid #f1f5f9; } .nickname-modal .modal-body { padding: 40rpx; } .nickname-input { width: 100%; height: 80rpx; background: #f8fafc; border: 2rpx solid #e2e8f0; border-radius: 12rpx; font-size: 28rpx; color: #1e293b; text-align: center; transition: all 0.3s ease; } .nickname-input:focus { border-color: #667eea; background: white; box-shadow: 0 0 0 4rpx rgba(102, 126, 234, 0.1); } .input-tip { display: block; font-size: 24rpx; color: #94a3b8; text-align: center; margin-top: 16rpx; } .nickname-modal .modal-footer { padding: 0 40rpx 40rpx; display: flex; gap: 20rpx; } .cancel-btn, .confirm-btn { flex: 1; padding: 5rpx 0; border-radius: 40rpx; font-size: 28rpx; font-weight: 500; transition: all 0.3s ease; border: none; } .cancel-btn { background: #f1f5f9; color: #64748b; } .cancel-btn::after{ border: none; } .cancel-btn:active { background: #e2e8f0; } .confirm-btn { background: linear-gradient(135deg, #667eea, #764ba2); color: white; box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3); } .confirm-btn:active { transform: scale(0.98); opacity: 0.9; } /* 退出登录确认弹窗 */ .logout-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; pointer-events: none; } .logout-modal.show { opacity: 1; visibility: visible; pointer-events: auto; } .logout-modal .modal-content { width: 600rpx; background: white; border-radius: 24rpx; overflow: hidden; box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.2); transform: scale(0.8); transition: all 0.3s ease; } .logout-modal.show .modal-content { transform: scale(1); } .logout-modal-body { padding: 60rpx 40rpx 40rpx; text-align: center; } .logout-title { font-weight: 700; color: #1e293b; display: block; } .logout-desc { font-size: 28rpx; color: #64748b; line-height: 1.5; } .logout-modal-footer { padding: 0 40rpx 40rpx; display: flex; gap: 20rpx; } .logout-cancel-btn, .logout-confirm-btn { flex: 1; border-radius: 44rpx; font-size: 30rpx; font-weight: 600; transition: all 0.3s ease; border: none; } .logout-cancel-btn::after{ border: none; } .logout-cancel-btn { background: #f1f5f9; color: #64748b; } .logout-cancel-btn:active { background: #e2e8f0; transform: scale(0.98); } .logout-confirm-btn { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 8rpx 24rpx rgba(239, 68, 68, 0.3); } .logout-confirm-btn:active { transform: scale(0.98); opacity: 0.9; } /* 提示信息 */ .toast { position: fixed; top: 150rpx; left: 50%; transform: translateX(-50%) translateY(-100rpx); background: rgba(30, 41, 59, 0.95); backdrop-filter: blur(20rpx); color: white; padding: 24rpx 48rpx; border-radius: 16rpx; font-size: 28rpx; font-weight: 500; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1001; box-shadow: 0 10rpx 40rpx rgba(0, 0, 0, 0.2); max-width: 80%; text-align: center; white-space: nowrap; } .toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }