Files
Neo-ZQYY/docs/h5_ui/css/task-detail.css

131 lines
3.9 KiB
CSS

/* task-detail 系列页面共享样式 */
body {
font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
padding-bottom: 80px;
}
.section-title {
position: relative;
padding-left: 12px;
}
.section-title::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 16px;
border-radius: 2px;
}
.section-title.blue::before { background: linear-gradient(180deg, #0052d9, #5b9cf8); }
.section-title.green::before { background: linear-gradient(180deg, #00a870, #4cd964); }
.section-title.orange::before { background: linear-gradient(180deg, #ed7b2f, #ffc107); }
.section-title.purple::before { background: linear-gradient(180deg, #7c3aed, #a78bfa); }
.section-title.pink::before { background: linear-gradient(180deg, #e91e63, #f48fb1); }
/* 服务记录卡片 — 用于 task-detail 系列页面(参考 performance.html 风格升级) */
.svc-record {
padding: 12px 14px;
border-radius: 12px;
border: 1px solid #eeeeee;
background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
}
.svc-record + .svc-record { margin-top: 8px; }
.svc-record .svc-date { font-size: 11px; color: #8b8b8b; }
.svc-record .svc-table { font-size: 12px; color: #0052d9; background: #ecf2fe; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.svc-record .svc-duration { font-size: 13px; color: #393939; font-weight: 600; font-variant-numeric: tabular-nums; }
.svc-record .svc-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.svc-record .svc-type.basic { background: rgba(0,82,217,0.1); color: #0052d9; }
.svc-record .svc-type.incentive { background: rgba(0,168,112,0.1); color: #00a870; }
.svc-record .svc-drinks { font-size: 12px; color: #777777; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-record .svc-income { font-size: 14px; font-weight: 700; color: #242424; font-variant-numeric: tabular-nums; }
/* 近期服务记录区域背景 */
.svc-section-bg {
background: #f3f3f3;
border-radius: 12px;
padding: 16px;
margin-top: 8px;
}
/* ===== 备注弹窗 — 展开评价按钮 ===== */
.note-expand-btn {
font-size: 12px;
color: #0052d9;
background: none;
border: none;
cursor: pointer;
padding: 2px 0;
white-space: nowrap;
}
.note-expand-btn:active { opacity: 0.6; }
/* ===== 备注弹窗 — 星星打分组件 ===== */
.note-rating-group {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 20px;
padding: 14px 16px;
background: #f8f9fb;
border-radius: 14px;
border: 1px solid #eee;
}
.note-rating-label {
font-size: 13px;
font-weight: 600;
color: #393939;
line-height: 1.4;
white-space: nowrap;
flex-shrink: 0;
min-width: 48px;
}
.note-rating-right {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.note-rating-row {
display: flex;
align-items: center;
gap: 6px;
user-select: none;
-webkit-user-select: none;
touch-action: none;
}
.note-rating-row .nr-star {
position: relative;
width: 32px;
height: 32px;
cursor: pointer;
flex-shrink: 0;
transition: transform 0.15s ease;
}
.note-rating-row .nr-star:active { transform: scale(0.85); }
.note-rating-row .nr-star svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.note-rating-row .nr-star .nr-empty { color: #d9d9d9; }
.note-rating-row .nr-star .nr-filled { color: #faad14; clip-path: inset(0 100% 0 0); transition: clip-path 0.12s ease; }
.note-rating-row .nr-star.active .nr-filled { clip-path: inset(0 0 0 0); }
/* 1/3/5 星下方提示文字 */
.note-rating-hints {
display: flex;
margin-top: 4px;
padding: 0;
}
.note-rating-hints span {
width: 32px;
flex-shrink: 0;
font-size: 10px;
color: #a6a6a6;
text-align: center;
line-height: 1;
}
.note-rating-hints span + span { margin-left: 6px; }