123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370 |
- .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 */
- }
- .back-icon {
- width: 16px;
- height: 16px;
- vertical-align: middle;
- }
- .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;
- }
- .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: 40rpx;
- }
- .button-group {
- display: flex;
- flex-wrap: wrap;
- gap: 20rpx;
- }
- .unbind-btn {
- font-size: 30rpx !important;
- font-weight: 400 !important;
- padding: 8rpx 20rpx;
- background-color: rgba(239, 93, 93, 1);
- color: rgba(255, 255, 255, 1);
- border-radius: 30rpx;
- min-width: auto;
- line-height: 1.8;
- margin: 0;
- }
- .default-btn {
- font-size: 30rpx;
- font-weight: 400;
- padding: 8rpx 20rpx;
- background-color: #f0f8ff;
- color: #1976d2;
- border-radius: 30rpx;
- border: 1px solid #bbdefb;
- min-width: auto;
- line-height: 1.8;
- }
- .default-tag {
- font-size: 30rpx;
- font-weight: 400;
- padding: 8rpx 20rpx;
- background-color: transparent;
- color: #2e7d32;
- min-width: auto;
- border: 1px solid #2e7d32;
- border-radius: 30rpx;
- line-height: 1.8;
- }
- /* 底部按钮容器 */
- .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: rgba(46, 130, 255, 1);
- color: #fff;
- font-size: 32rpx;
- font-weight: 600;
- 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;
- height: 400rpx;
- 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: 100rpx 40rpx 40rpx;
- }
- .modal-title {
- font-size: 36rpx;
- font-weight: 500;
- text-align: center;
- margin-bottom: 30rpx;
- }
- .modal-desc {
- font-size: 28rpx;
- font-weight: 400;
- color: rgba(134, 141, 155, 1);
- 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: 30rpx;
- font-weight: 400;
- }
- .cancel-btn {
- background: #f0f0f0;
- color: #333;
- }
- .confirm-btn {
- background: rgba(46, 130, 255, 1);
- 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: 6rpx solid #ca188f;
- 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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233580f1"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat;
- background-size: contain;
- z-index: 10;
- }
- .default-account-card {
- position: relative;
- }
|