/* ===== 页面 ===== */ .points-page { min-height: 100vh; background: #f5f7fa; display: flex; flex-direction: column; } /* ===== 蓝色头部 ===== */ .header { position: relative; width: 100%; } .header-bg { position: absolute; top: 0; left: 0; right: 0; height: 420rpx; background: linear-gradient(180deg, #1a3a8a 0%, #3a7bd5 100%); border-radius: 0 0 40rpx 40rpx; } .status-bar { height: env(safe-area-inset-top, 44px); position: relative; } .nav-bar { position: relative; height: 88rpx; display: flex; align-items: center; justify-content: space-between; padding: 0 24rpx; } .nav-back { width: 60rpx; height: 60rpx; display: flex; align-items: center; justify-content: center; } .back-arrow { font-size: 40rpx; color: #ffffff; font-weight: 700; } .nav-title { font-size: 34rpx; font-weight: 600; color: #ffffff; } .nav-placeholder { width: 60rpx; } /* ===== 积分总数 ===== */ .points-total { position: relative; display: flex; flex-direction: column; align-items: center; padding: 20rpx 0 50rpx; } .points-num { font-size: 80rpx; font-weight: 800; color: #ffffff; line-height: 1.1; } .points-label { font-size: 24rpx; color: rgba(255, 255, 255, 0.7); margin-top: 8rpx; } /* ===== Tab 栏 ===== */ .tab-bar { display: flex; background: #ffffff; border-bottom: 1rpx solid #f0f0f0; } .tab-item { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 26rpx 0; } .tab-text { font-size: 30rpx; color: #999; } .tab-item.active .tab-text { color: #1a1a1a; font-weight: 700; font-size: 32rpx; } .tab-line { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 48rpx; height: 6rpx; background: #1a56db; border-radius: 3rpx; } /* ===== 表头 ===== */ .table-header { display: flex; align-items: center; padding: 24rpx 28rpx; background: #ffffff; border-bottom: 1rpx solid #f0f0f0; } .th { font-size: 26rpx; color: #999; font-weight: 500; } .th-event { width: 240rpx; flex-shrink: 0; } .th-project { flex: 1; text-align: center; } .th-rank { width: 80rpx; text-align: center; flex-shrink: 0; } .th-points { width: 80rpx; text-align: right; flex-shrink: 0; } /* ===== 记录列表 ===== */ .record-list { flex: 1; height: 0; background: #ffffff; } .record-row { display: flex; align-items: center; padding: 24rpx 28rpx; border-bottom: 1rpx solid #f5f5f5; } .td { font-size: 26rpx; color: #333; } .td-event { width: 240rpx; flex-shrink: 0; display: flex; flex-direction: column; } .event-name { font-size: 26rpx; color: #1a1a1a; font-weight: 500; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.4; } .event-time { font-size: 22rpx; color: #bbb; margin-top: 6rpx; } .td-project { flex: 1; text-align: center; font-size: 24rpx; color: #666; padding: 0 8rpx; } .td-rank { width: 80rpx; text-align: center; flex-shrink: 0; } .td-points { width: 80rpx; text-align: right; flex-shrink: 0; font-weight: 700; } .td-points.positive { color: #1a56db; } .td-points.negative { color: #e74c3c; } /* ===== 空状态 ===== */ .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 240rpx; } .empty-icon { display: flex; flex-direction: column; align-items: center; margin-bottom: 32rpx; } .empty-doc { width: 160rpx; height: 180rpx; background: #f5f5f5; border-radius: 12rpx; display: flex; flex-direction: column; align-items: center; padding-top: 30rpx; gap: 14rpx; position: relative; } .empty-doc-top { width: 80rpx; height: 20rpx; background: #e8e8e8; border-radius: 4rpx; } .empty-doc-line { width: 100rpx; height: 10rpx; background: #e8e8e8; border-radius: 2rpx; } .empty-doc-line.short { width: 70rpx; } .empty-doc-shadow { width: 140rpx; height: 16rpx; background: radial-gradient(ellipse, rgba(0,0,0,0.08) 0%, transparent 70%); margin-top: 8rpx; } .empty-text { font-size: 28rpx; color: #c0c4cc; } /* ===== 加载提示 ===== */ .loading-tip { text-align: center; padding: 24rpx 0; color: #ccc; font-size: 24rpx; }