page { background-color: #F7F8FA; height: 100vh; box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; } .container { width: 100%; height: 100%; display: flex; flex-direction: column; } /* 地图样式:占满剩余高度 */ .map { flex: 1; width: 100%; min-height: 50vh; } /* 三选项卡样式 */ .tab-container { display: flex; background: #FFFFFF; padding: 8rpx 16rpx; margin: 8rpx 0; border-radius: 12rpx; box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04); } .tab-item { flex: 1; display: flex; align-items: center; justify-content: center; height: 80rpx; border-radius: 8rpx; position: relative; color: #4E5969; font-size: 30rpx; font-weight: 500; transition: all 0.2s ease; } .tab-active { background: linear-gradient(135deg, #165DFF 0%, #0F4CD3 100%); color: #FFFFFF; } .tab-item:active { opacity: 0.9; transform: scale(0.98); } .tab-badge { display: inline-flex; align-items: center; justify-content: center; width: 36rpx; height: 36rpx; background: rgba(255, 255, 255, 0.2); color: #FFFFFF; font-size: 22rpx; border-radius: 50%; margin-left: 8rpx; } .tab-item:not(.tab-active) .tab-badge { background: #E5E6EB; color: #86909C; } .tab-text { display: inline-block; } /* 列表容器样式 */ .list-wrap { background: #FFFFFF; margin: 0 16rpx 16rpx; border-radius: 16rpx; box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06); overflow: hidden; max-height: 40vh; overflow-y: auto; } .list-header { display: flex; justify-content: space-between; align-items: center; padding: 24rpx 24rpx 16rpx; border-bottom: 1rpx solid #F2F3F5; } .list-title { font-size: 32rpx; font-weight: 600; color: #1D2129; } .list-count { font-size: 24rpx; color: #86909C; } /* 空数据样式 */ .empty-wrap { padding: 80rpx 0; text-align: center; } .empty-icon { font-size: 80rpx; color: #C9CDD4; margin-bottom: 20rpx; } .empty-text { font-size: 28rpx; color: #86909C; } /* 列表项卡片样式 */ .list-card { display: flex; justify-content: space-between; align-items: center; padding: 24rpx; border-bottom: 1rpx solid #F7F8FA; transition: background 0.2s ease; } .list-card:last-child { border-bottom: none; } .list-card:active { background: #F7F8FA; } .card-left { flex: 1; display: flex; flex-direction: column; gap: 8rpx; } /* 类型标签 */ .card-tag { display: inline-block; padding: 4rpx 12rpx; border-radius: 6rpx; font-size: 22rpx; font-weight: 500; } .tag-car { background: #EEF7FF; color: #165DFF; } .tag-station { background: #E8FFF3; color: #00B42A; } .tag-user { background: #FFF7E6; color: #FF7D00; } /* 名称/地址/状态 */ .card-name { font-size: 30rpx; font-weight: 500; color: #1D2129; line-height: 1.4; } .card-address { font-size: 24rpx; color: #86909C; line-height: 1.4; max-width: 500rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .card-status { font-size: 22rpx; color: #FF7D00; margin-top: 4rpx; } /* 右侧详情按钮 */ .card-right { flex-shrink: 0; margin-left: 16rpx; } .detail-btn { display: inline-flex; align-items: center; justify-content: center; width: 88rpx; height: 64rpx; background: linear-gradient(135deg, #165DFF 0%, #0F4CD3 100%); color: #FFFFFF; font-size: 26rpx; font-weight: 500; border-radius: 8rpx; box-shadow: 0 2rpx 8rpx rgba(22, 93, 255, 0.3); transition: all 0.2s ease; } .detail-btn:active { opacity: 0.9; transform: scale(0.96); } /* 深色模式适配 */ @media (prefers-color-scheme: dark) { page { background-color: #1D1D1F; } .tab-container, .list-wrap { background: #2C2C2E; color: #FFFFFF; } .list-title { color: #FFFFFF; } .list-header { border-bottom-color: #3A3A3C; } .list-card { border-bottom-color: #3A3A3C; } .list-card:active { background: #3A3A3C; } .card-address, .list-count { color: #8E8E93; } }