.nearby-page { display: flex; flex-direction: column; height: 100vh; background: linear-gradient(180deg, #c9f7df 0%, #d8efff 40%, #fff1a6 100%); overflow: hidden; } /* 主导航栏:与胶囊等高,右侧避让胶囊 */ .navbar { display: flex; align-items: center; padding-left: 28rpx; flex-shrink: 0; box-sizing: border-box; background: rgba(255, 255, 255, 0.72); } /* 次级菜单栏:胶囊下方,全宽 */ .subbar { display: flex; align-items: center; padding: 8rpx 28rpx 12rpx; gap: 16rpx; flex-shrink: 0; background: rgba(255, 255, 255, 0.72); } .topbar-logo { font-size: 44rpx; font-weight: 900; color: #272235; flex-shrink: 0; } .logo-accent { color: #ff4f91; } .view-toggle { flex: 1; display: flex; background: rgba(255, 255, 255, 0.60); border-radius: 999rpx; padding: 4rpx; gap: 4rpx; border: 1rpx solid rgba(255, 255, 255, 0.80); } .toggle-btn { flex: 1; text-align: center; font-size: 24rpx; font-weight: 700; color: #9b8fa8; padding: 12rpx 0; border-radius: 999rpx; } .toggle-active { background: rgba(255, 255, 255, 0.90); color: #272235; font-weight: 900; box-shadow: 0 4rpx 10rpx rgba(78, 56, 96, 0.10); } .topbar-btn { width: 60rpx; height: 60rpx; border-radius: 50%; background: rgba(255, 255, 255, 0.72); box-shadow: 0 8rpx 18rpx rgba(78, 56, 96, 0.10); display: flex; align-items: center; justify-content: center; font-size: 30rpx; } /* 地图 */ .map-wrap { flex: 1; position: relative; overflow: hidden; } .map { width: 100%; height: 100%; } /* 地图控件 */ .map-controls { position: absolute; right: 24rpx; bottom: 300rpx; display: flex; flex-direction: column; gap: 14rpx; z-index: 10; } .map-ctrl-btn { width: 72rpx; height: 72rpx; background: rgba(255, 255, 255, 0.90); border: 1rpx solid rgba(255, 255, 255, 0.80); border-radius: 22rpx; box-shadow: 0 10rpx 20rpx rgba(82, 66, 105, 0.16); display: flex; align-items: center; justify-content: center; font-size: 30rpx; font-weight: 800; color: #4d8dff; } /* 宠物弹窗 */ .pet-popup { position: absolute; bottom: 300rpx; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.92); border: 1rpx solid rgba(255, 255, 255, 0.72); border-radius: 30rpx; padding: 20rpx 24rpx; display: flex; align-items: center; gap: 18rpx; box-shadow: 0 18rpx 40rpx rgba(95, 49, 104, 0.18); min-width: 520rpx; z-index: 20; } .popup-avatar { width: 72rpx; height: 72rpx; border-radius: 22rpx; display: flex; align-items: center; justify-content: center; font-size: 36rpx; flex-shrink: 0; } .popup-info { flex: 1; } .popup-name { display: block; font-size: 28rpx; font-weight: 800; color: #272235; } .popup-sub { display: block; font-size: 22rpx; color: #9b8fa8; margin-top: 4rpx; } .popup-hi { padding: 16rpx 24rpx; font-size: 24rpx; font-weight: 800; border-radius: 999rpx; flex-shrink: 0; } /* 在线数角标 */ .online-badge { position: absolute; top: 20rpx; left: 20rpx; background: rgba(255, 255, 255, 0.90); border-radius: 999rpx; padding: 10rpx 20rpx; font-size: 22rpx; font-weight: 800; color: #ff4f91; box-shadow: 0 8rpx 16rpx rgba(78, 56, 96, 0.12); z-index: 10; } /* 底部预览条 */ .map-preview-list { position: absolute; bottom: 0; left: 0; right: 0; z-index: 15; background: rgba(255, 255, 255, 0.85); border-top: 1rpx solid rgba(255, 255, 255, 0.72); padding: 20rpx 0; } .preview-scroll { white-space: nowrap; padding: 0 24rpx; } .preview-card { display: inline-flex; align-items: center; gap: 12rpx; background: rgba(255, 255, 255, 0.80); border: 1rpx solid rgba(255, 255, 255, 0.72); border-radius: 24rpx; padding: 14rpx 18rpx; margin-right: 16rpx; box-shadow: 0 8rpx 16rpx rgba(78, 56, 96, 0.08); } .preview-avatar { width: 60rpx; height: 60rpx; border-radius: 18rpx; display: flex; align-items: center; justify-content: center; font-size: 30rpx; flex-shrink: 0; } .preview-info { display: flex; flex-direction: column; gap: 4rpx; } .preview-name { font-size: 26rpx; font-weight: 800; color: #272235; } .preview-dist { font-size: 20rpx; color: #4d8dff; font-weight: 700; } /* 列表视图 */ .list-scroll { flex: 1; background: linear-gradient(180deg, #fff9fb 0%, #f5f0ff 100%); } .list-header { display: flex; align-items: center; justify-content: space-between; padding: 28rpx 28rpx 18rpx; } .list-title { font-size: 30rpx; font-weight: 900; color: #272235; } .online-chip { font-size: 24rpx; font-weight: 700; color: #ff4f91; background: #ffe5f0; border-radius: 999rpx; padding: 8rpx 16rpx; } /* 列表项 */ .nearby-item { display: flex; align-items: center; gap: 18rpx; background: rgba(255, 255, 255, 0.80); border: 1rpx solid rgba(255, 255, 255, 0.72); border-radius: 40rpx; margin: 0 28rpx 20rpx; padding: 20rpx; box-shadow: 0 12rpx 26rpx rgba(80, 58, 108, 0.09); } .nearby-avatar { width: 88rpx; height: 88rpx; border-radius: 30rpx; display: flex; align-items: center; justify-content: center; font-size: 40rpx; flex-shrink: 0; } .avatar-emoji { font-size: 40rpx; line-height: 1; } .nearby-info { flex: 1; min-width: 0; } .nearby-name-row { display: flex; align-items: center; gap: 10rpx; margin-bottom: 6rpx; } .nearby-pet-name { font-size: 28rpx; font-weight: 900; color: #272235; } .breed-chip { font-size: 20rpx; font-weight: 800; background: #ffe5f0; color: #a91d5b; border-radius: 999rpx; padding: 4rpx 12rpx; } .nearby-sub { display: flex; align-items: center; gap: 8rpx; font-size: 22rpx; color: #9b8fa8; } .online-dot { width: 14rpx; height: 14rpx; border-radius: 50%; background: #2fd37a; flex-shrink: 0; box-shadow: 0 0 0 4rpx rgba(47, 211, 122, 0.18); } .nearby-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10rpx; flex-shrink: 0; } .dist-text { font-size: 22rpx; font-weight: 800; color: #4d8dff; } .say-hi { background: linear-gradient(135deg, #fff, #fff4b7); border: 1rpx solid rgba(255, 255, 255, 0.8); border-radius: 999rpx; padding: 12rpx 22rpx; font-size: 22rpx; font-weight: 800; color: #272235; box-shadow: 0 8rpx 16rpx rgba(255, 159, 28, 0.14); } /* 骨架 */ .nearby-skeleton { height: 128rpx; background: linear-gradient(90deg, #f0eef5 25%, #e8e4f0 50%, #f0eef5 75%); background-size: 200% 100%; animation: shine 1.4s infinite; border-radius: 40rpx; margin: 0 28rpx 20rpx; } @keyframes shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* 空态 */ .empty-nearby { display: flex; flex-direction: column; align-items: center; padding: 120rpx 60rpx; gap: 16rpx; } .empty-emoji { font-size: 80rpx; } .empty-title { font-size: 34rpx; font-weight: 900; color: #272235; } .empty-desc { font-size: 26rpx; color: #9b8fa8; text-align: center; line-height: 1.6; }