- scan-report: replace zone card grid with the same oval face-map layout as treatment-setup, zones tinted by recommended light with mode label; restore the per-light legend under the map - manual-treatment: region picker now uses the same face-map layout - manual care mode selection is smart-mode only: entry link hidden for non-subscribers and the page itself checks subscription (free mode passes since the backend reports it as active)
148 行
5.1 KiB
Plaintext
148 行
5.1 KiB
Plaintext
.page {
|
|
min-height: 100vh;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.loading-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding-top: 120rpx;
|
|
}
|
|
.loading-spinner {
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
border: 6rpx solid #eee;
|
|
border-top-color: #E8503A;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
.loading-text { margin-top: 20rpx; color: #999; font-size: 26rpx; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.concept-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
background: #FFF7E6;
|
|
border: 1rpx solid #FFE1A8;
|
|
border-radius: 14rpx;
|
|
padding: 18rpx 22rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
.concept-icon { color: #E8971A; margin-right: 12rpx; font-size: 30rpx; }
|
|
.concept-text { color: #A66908; font-size: 24rpx; line-height: 1.4; flex: 1; }
|
|
|
|
.scan-time { color: #999; font-size: 24rpx; margin: 0 6rpx 20rpx; }
|
|
|
|
.card {
|
|
background: #fff;
|
|
border-radius: 18rpx;
|
|
padding: 28rpx 26rpx;
|
|
margin-bottom: 22rpx;
|
|
box-shadow: 0 4rpx 18rpx rgba(0,0,0,0.04);
|
|
}
|
|
.card-title { font-size: 30rpx; font-weight: 600; color: #333; margin-bottom: 20rpx; }
|
|
|
|
.chip-row { display: flex; flex-wrap: wrap; }
|
|
.chip {
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: 999rpx;
|
|
padding: 10rpx 22rpx;
|
|
margin: 0 16rpx 16rpx 0;
|
|
background: #F3F4F6;
|
|
}
|
|
.chip-name { font-size: 26rpx; color: #333; }
|
|
.chip-lv { font-size: 22rpx; color: #fff; margin-left: 12rpx; padding: 2rpx 14rpx; border-radius: 999rpx; background: #bbb; }
|
|
.chip-lv1 .chip-lv { background: #6BBF59; }
|
|
.chip-lv2 .chip-lv { background: #F5B841; }
|
|
.chip-lv3 .chip-lv { background: #E8503A; }
|
|
|
|
.empty-hint { color: #999; font-size: 26rpx; }
|
|
|
|
/* 脸型图 — 与「使用设置」同款布局,放大以容纳模式名 */
|
|
.face-map {
|
|
width: 320rpx;
|
|
height: 400rpx;
|
|
margin: 0 auto 16rpx;
|
|
position: relative;
|
|
}
|
|
.face-region {
|
|
position: absolute;
|
|
border: 3rpx solid #e5e5e5;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #FAFAFA;
|
|
color: #999;
|
|
}
|
|
.face-region:active { transform: scale(0.96); }
|
|
.fz-name { font-size: 22rpx; font-weight: 600; }
|
|
.fz-mode { font-size: 18rpx; margin-top: 2rpx; }
|
|
.face-region.forehead { top: 5%; left: 25%; width: 50%; height: 15%; border-radius: 40rpx 40rpx 50% 50%; }
|
|
.face-region.left-cheek { top: 25%; left: 5%; width: 30%; height: 25%; }
|
|
.face-region.right-cheek { top: 25%; right: 5%; width: 30%; height: 25%; }
|
|
.face-region.nose { top: 45%; left: 35%; width: 30%; height: 18%; border-radius: 40%; }
|
|
.face-region.chin { top: 68%; left: 25%; width: 50%; height: 20%; border-radius: 0 0 50% 50%; }
|
|
|
|
/* 波长配色(置于 .face-region 之后以覆盖默认色) */
|
|
.zone-red { background: rgba(232, 93, 93, 0.14); border-color: rgba(232, 93, 93, 0.55); color: #B23C3C; }
|
|
.zone-ir { background: rgba(192, 107, 74, 0.14); border-color: rgba(192, 107, 74, 0.55); color: #8C4A2E; }
|
|
.zone-uv { background: rgba(142, 107, 216, 0.14); border-color: rgba(142, 107, 216, 0.55); color: #5F3FAE; }
|
|
.zone-yellow { background: rgba(232, 185, 61, 0.16); border-color: rgba(232, 185, 61, 0.6); color: #8A6A10; }
|
|
.zone-none { background: #FAFAFA; border-color: #e5e5e5; color: #999; }
|
|
|
|
/* 底部图例:各光简要功效 */
|
|
.face-legend { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 8rpx; }
|
|
.legend-item { display: flex; align-items: center; margin: 0 16rpx 10rpx 0; }
|
|
.legend-dot { width: 16rpx; height: 16rpx; border-radius: 50%; margin-right: 8rpx; }
|
|
.dot-red { background: #E85D5D; }
|
|
.dot-ir { background: #C06B4A; }
|
|
.dot-uv { background: #8E6BD8; }
|
|
.dot-yellow { background: #E8B93D; }
|
|
.legend-label { font-size: 22rpx; color: #888; }
|
|
|
|
.face-tap-hint { font-size: 22rpx; color: #bbb; margin-top: 14rpx; text-align: center; }
|
|
.face-all-normal-hint { font-size: 24rpx; color: #6BBF59; text-align: center; margin-top: 12rpx; }
|
|
|
|
.region-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20rpx 0;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
.region-row:last-child { border-bottom: none; }
|
|
.region-name { font-size: 28rpx; color: #333; }
|
|
.region-right { display: flex; align-items: center; }
|
|
.region-problem { font-size: 26rpx; color: #555; margin-right: 14rpx; }
|
|
.region-problem-none { color: #aaa; }
|
|
.region-lv { font-size: 22rpx; color: #fff; padding: 2rpx 14rpx; border-radius: 999rpx; background: #bbb; }
|
|
.region-lv1 { background: #6BBF59; }
|
|
.region-lv2 { background: #F5B841; }
|
|
.region-lv3 { background: #E8503A; }
|
|
|
|
.rec-row { display: flex; align-items: flex-start; padding: 16rpx 0; }
|
|
.rec-dot {
|
|
width: 14rpx; height: 14rpx; border-radius: 50%;
|
|
background: #E8503A; margin-top: 12rpx; margin-right: 18rpx; flex-shrink: 0;
|
|
}
|
|
.rec-body { display: flex; flex-direction: column; }
|
|
.rec-label { font-size: 28rpx; color: #333; font-weight: 500; }
|
|
.rec-meta { font-size: 24rpx; color: #999; margin-top: 6rpx; }
|
|
|
|
.error-text { color: #E8503A; font-size: 26rpx; text-align: center; margin: 10rpx 0; }
|
|
|
|
.actions { margin-top: 12rpx; }
|
|
.actions .btn-primary, .actions .btn-secondary { margin-bottom: 20rpx; }
|
|
|
|
.disclaimer {
|
|
color: #b0b0b0;
|
|
font-size: 22rpx;
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
margin: 20rpx 10rpx 40rpx;
|
|
}
|