.container { position: relative; width: 100%; min-height: 100vh; display: flex; flex-direction: column; box-sizing: border-box; overflow: hidden; /* 防止内容溢出 */ } /* 背景图片样式 */ .header { position: fixed; /* 改为fixed确保不随滚动而移动 */ top: 0; left: 0; width: 100%; z-index: -1; /* 负值z-index确保在最底层 */ } .background { width: 101%; height: auto; } .custom-nav { display: flex; align-items: center; height: 90rpx; margin-bottom: 20rpx; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 20rpx; padding-top: 88rpx; /* 适配iPhone状态栏,44px转换为88rpx */ } .fixed-back { font-size: 40rpx; text-align: center; color: #fff; } .nav-title { flex: 1; text-align: center; font-size: 34rpx; color: #fff; } /* 滚动区域样式 */ .scroll-area { flex: 1; width: 100%; padding: 0 2%; box-sizing: border-box; position: fixed; /* 固定位置 */ top: calc(90rpx + 88rpx + 20rpx); /* 导航栏高度 + 状态栏 + 间距,44px转换为88rpx */ bottom: 148rpx; /* 底部按钮高度 + 底部padding */ left: 0; right: 0; z-index: 10; /* 确保在背景之上,导航栏之下 */ } /* 卡片列表样式 */ .card-list { width: 100%; padding-bottom: 40rpx; padding-top: 50rpx; } .card { width: 96%; margin: 0 auto 20rpx; border-radius: 16rpx; box-shadow: 0rpx 6rpx 12rpx rgba(0, 0, 0, 0.16); position: relative; overflow: hidden; } .card-inner { position: relative; width: 100%; padding: 30rpx; box-sizing: border-box; overflow: hidden; /* 确保内容不溢出 */ } .card-background { position: absolute; top: 0; left: -2%; width: 104%; height: 100%; z-index: -1; border-radius: 16rpx; background: linear-gradient(150.23deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 50.4%, rgba(255, 255, 255, 1) 100%); } .card-header { margin-bottom: 20rpx; } .name-tag { display: flex; align-items: center; } .name { font-size: 40rpx; font-weight: bold; margin-right: 20rpx; } .tag { font-size: 26rpx; padding: 4rpx 12rpx; background-color: #e6f7ff; color: #1890ff; border-radius: 8rpx; } .card-body { display: flex; flex-direction: column; margin-bottom: 30rpx; } .phone, .address { font-size: 30rpx; color: rgba(104, 108, 128, 1); margin-bottom: 10rpx; } .card-footer { display: flex; justify-content: flex-start; align-items: center; margin-top: 20rpx; } .button-group { display: flex; flex-wrap: wrap; gap: 20rpx; } .unbind-btn { font-size: 28rpx; padding: 8rpx 20rpx; background-color: rgba(239, 93, 93, 1); color: rgba(255, 255, 255, 1); border-radius: 30rpx; border: 1px solid #ddd; min-width: auto; line-height: 1.8; margin: 0; } .default-btn { font-size: 28rpx; padding: 8rpx 20rpx; background-color: #f0f8ff; color: #1976d2; border-radius: 30rpx; border: 1px solid #bbdefb; min-width: auto; line-height: 1.8; margin: 0; } .default-tag { font-size: 28rpx; padding: 8rpx 20rpx; background-color: transparent; color: #2e7d32; min-width: auto; border: 1px solid #2e7d32; border-radius: 30rpx; line-height: 1.8; margin: 0; } /* 底部按钮容器 */ .bottom-btn-container { position: fixed; bottom: 0; left: 0; width: 100%; padding: 30rpx 5%; box-sizing: border-box; background-color: #fff; box-shadow: 0 -8rpx 40rpx rgba(0, 0, 0, 0.05); z-index: 100; } .bind-new-btn { width: 100%; height: 88rpx; line-height: 88rpx; background-color: #1890ff; color: #fff; font-size: 32rpx; border-radius: 44rpx; } /* 解绑确认弹窗样式 */ .modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; } .modal-content { position: relative; width: 600rpx; background: #fff; border-radius: 20rpx; overflow: visible; } .modal-icon-wrapper { position: absolute; top: -48rpx; left: 50%; transform: translateX(-50%); width: 96rpx; height: 96rpx; z-index: 1001; } .modal-icon { width: 96rpx; height: 96rpx; } .modal-body { padding: 60rpx 40rpx 40rpx; } .modal-title { font-size: 36rpx; font-weight: bold; text-align: center; margin-bottom: 20rpx; } .modal-desc { font-size: 28rpx; color: #999; text-align: center; margin-bottom: 40rpx; } .modal-btns { display: flex; justify-content: space-between; } .cancel-btn, .confirm-btn { width: 240rpx; height: 80rpx; line-height: 80rpx; text-align: center; border-radius: 40rpx; font-size: 32rpx; } .cancel-btn { background: #f0f0f0; color: #333; } .confirm-btn { background: #1890ff; color: #fff; } .card-content { position: relative; padding: 40rpx 32rpx; z-index: 2; } .title { font-size: 36rpx; font-weight: 500; margin-bottom: 12rpx; letter-spacing: 0rpx; line-height: 48rpx; color: rgba(46, 48, 56, 1); text-align: left; vertical-align: top; font-family: 'PingFang SC', sans-serif; } .subtitle { font-size: 26rpx; color: #999; margin-bottom: 32rpx; letter-spacing: 4rpx; } .bind-button { width: 200rpx !important; height: 70rpx; line-height: 70rpx; background: rgba(239, 93, 93, 1); color: #fff; font-size: 30rpx; border-radius: 40rpx; margin-left: 0rpx; /* 向左50rpx */ top: 40rpx; /* 向下50rpx */ } .divider { left: 72rpx; top: 402rpx; width: 30rpx; height: 0rpx; opacity: 1; border: 2rpx solid rgba(232, 232, 232, 1); } .current-user-card { position: relative; } .current-user-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 8rpx solid #3580f1; border-radius: 16rpx; pointer-events: none; z-index: 10; box-sizing: border-box; } .current-user-card::after { content: ""; position: absolute; top: 10rpx; right: 10rpx; width: 40rpx; height: 40rpx; background: url('data:image/svg+xml;utf8,') no-repeat; background-size: contain; z-index: 10; } .default-account-card { position: relative; }