/* pages/me/index.less */ page { background-color: #FAF6F1; color: #2A211B; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; } .page { min-height: 100vh; background: #FAF6F1; box-sizing: border-box; padding: 24rpx; } /* === 用户信息卡 === */ .header-card { background: #C26A2E; border-radius: 24rpx; padding: 40rpx 32rpx; display: flex; align-items: center; color: #ffffff; box-shadow: 0 8rpx 24rpx rgba(180, 85, 42, 0.25); } .avatar { width: 112rpx; height: 112rpx; border-radius: 50%; background-color: rgba(255, 255, 255, 0.25); border: 2rpx solid rgba(255, 255, 255, 0.4); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; } .avatar-img { width: 100%; height: 100%; } .avatar-text { font-size: 44rpx; font-weight: 600; color: #ffffff; } .user-info { margin-left: 28rpx; display: flex; flex-direction: column; flex: 1; min-width: 0; } .user-name { font-size: 36rpx; font-weight: 600; } .user-mobile { margin-top: 10rpx; font-size: 28rpx; opacity: 0.9; } /* === 编辑入口 === */ .edit-entry { flex-shrink: 0; margin-left: 16rpx; padding: 10rpx 24rpx; border-radius: 28rpx; background-color: rgba(255, 255, 255, 0.16); border: 1rpx solid rgba(255, 255, 255, 0.4); font-size: 26rpx; color: #ffffff; &:active { background-color: rgba(255, 255, 255, 0.28); } } /* === 详细信息卡 === */ .info-card { margin-top: 24rpx; background: #ffffff; border-radius: 24rpx; padding: 8rpx 28rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04); } .info-item { display: flex; justify-content: space-between; align-items: center; padding: 28rpx 0; & + .info-item { border-top: 1rpx solid #F0EAE2; } } .info-left { display: flex; align-items: center; } .info-label { margin-left: 16rpx; font-size: 28rpx; color: #6F655C; } .info-value { font-size: 28rpx; color: #2A211B; max-width: 400rpx; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .picker-value { display: flex; align-items: center; justify-content: flex-end; color: #C26A2E; } .arrow { margin-left: 8rpx; font-size: 32rpx; color: #C9BFB5; } /* === 编辑态表单 === */ .edit-input { flex: 1; height: 48rpx; min-height: 48rpx; text-align: right; } .edit-placeholder { color: #C7BDB2; } .sex-edit { display: flex; align-items: center; gap: 16rpx; } .sex-chip { padding: 6rpx 32rpx; border-radius: 24rpx; background-color: #F4EFE9; border: 1rpx solid transparent; font-size: 26rpx; color: #6F655C; transition: all 0.2s ease; &.active { background-color: rgba(194, 106, 46, 0.1); border-color: #C26A2E; color: #C26A2E; font-weight: 600; } } /* === 保存按钮 === */ .save-bar { margin-top: 32rpx; } .save-btn { height: 96rpx; line-height: 96rpx; text-align: center; border-radius: 48rpx; background-color: #C26A2E; color: #ffffff; font-size: 30rpx; font-weight: 600; box-shadow: 0 8rpx 24rpx rgba(180, 85, 42, 0.25); &::after { border: none; } &:active { opacity: 0.9; } }