2026-06-04 19:29:48 +08:00

407 lines
7.1 KiB
CSS

.profile-badge {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 100%;
margin-top: 8px;
padding: 5px 9px;
border-radius: 999px;
background: var(--hy-theme-primary-soft, #f4ebff);
color: var(--primary-deep);
font-size: 13px;
font-weight: 750;
line-height: 1.2;
}
.agency-badge-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
flex: 0 0 22px;
overflow: hidden;
border-radius: 50%;
background: #dbc8ff;
color: var(--primary-deep);
font-size: 12px;
font-weight: 950;
line-height: 1;
}
.agency-badge-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.agency-badge-id {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.income-card,
.task-card {
padding: 16px;
}
.section-head,
.income-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.section-head h2,
.income-head h2 {
min-width: 0;
margin: 0;
overflow: hidden;
color: var(--text);
font-size: 18px;
font-weight: 950;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.income-value {
display: flex;
align-items: center;
gap: 10px;
margin-top: 18px;
color: #23272d;
font-size: 34px;
font-weight: 950;
line-height: 1;
}
.coin-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
flex: 0 0 28px;
border-radius: 50%;
background: linear-gradient(145deg, #ffe179 0%, #ffb62d 52%, #f49b20 100%);
color: #fff;
font-size: 19px;
font-weight: 950;
box-shadow:
inset 0 1px 2px rgba(255, 255, 255, 0.7),
0 1px 2px rgba(195, 117, 12, 0.24);
}
.income-foot {
margin-top: 12px;
color: var(--muted);
font-size: 13px;
font-weight: 800;
line-height: 1.35;
}
.task-pill {
display: inline-flex;
align-items: center;
justify-content: center;
max-width: 52%;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
background: var(--hy-theme-primary-soft, #f4ebff);
color: var(--primary-deep);
font-size: 12px;
font-weight: 900;
overflow: hidden;
line-height: 1;
text-overflow: ellipsis;
white-space: nowrap;
}
.task-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
margin-top: 16px;
}
.task-item {
min-width: 0;
}
.task-item > span {
display: block;
overflow-wrap: anywhere;
color: var(--muted);
font-size: 12px;
font-weight: 800;
line-height: 1.2;
}
.task-item strong {
display: block;
margin-top: 6px;
overflow-wrap: anywhere;
color: #292d33;
font-size: 17px;
font-weight: 950;
line-height: 1.2;
}
.progress-track {
height: 9px;
margin-top: 16px;
overflow: hidden;
border-radius: 999px;
background: var(--hy-theme-primary-soft, #f4ebff);
}
.progress-fill {
width: 0;
height: 100%;
border-radius: inherit;
background: var(--button);
transition: width 0.2s ease;
}
.skeleton-line,
.avatar-skeleton,
.skeleton-coin,
.skeleton-fill,
.policy-skeleton-block {
position: relative;
display: inline-block;
overflow: hidden;
color: transparent !important;
background: linear-gradient(
90deg,
#f2eafb 0%,
#eadcff 38%,
#f8f3ff 62%,
#f2eafb 100%
) !important;
background-size: 220% 100% !important;
box-shadow: none !important;
animation: hostSkeleton 1.15s ease-in-out infinite;
}
.name.skeleton-line {
width: min(260px, 78%);
height: 30px;
border-radius: 8px;
}
.meta.skeleton-line {
width: 135px;
height: 18px;
margin-top: 9px;
border-radius: 7px;
}
.profile-badge.skeleton-line {
width: 190px;
height: 28px;
border-radius: 999px;
}
.avatar-skeleton {
width: 100%;
height: 100%;
border-radius: 50%;
}
.income-value .skeleton-line {
width: 160px;
height: 38px;
border-radius: 10px;
}
.income-foot.skeleton-line {
width: 190px;
height: 18px;
border-radius: 7px;
}
.task-pill.skeleton-line {
width: 108px;
min-height: 28px;
}
.task-item strong.skeleton-line {
width: 126px;
height: 23px;
border-radius: 8px;
}
.skeleton-fill {
width: 38% !important;
}
.policy-summary .skeleton-line {
border-radius: 8px;
}
.policy-summary strong.skeleton-line {
width: 220px;
height: 22px;
}
.policy-summary span.skeleton-line {
width: 260px;
max-width: 100%;
height: 16px;
}
.policy-skeleton-block {
height: 132px;
margin-top: 14px;
border-radius: 8px;
}
@keyframes hostSkeleton {
0% {
background-position: 120% 0;
}
100% {
background-position: -120% 0;
}
}
.policy-sheet-body {
min-height: 180px;
overflow-y: auto;
padding: 16px;
}
.policy-summary {
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px;
border-radius: 8px;
background: var(--hy-theme-primary-soft, #f4ebff);
}
.policy-summary strong {
overflow-wrap: anywhere;
color: var(--text);
font-size: 17px;
font-weight: 950;
line-height: 1.25;
}
.policy-summary span {
color: var(--muted);
font-size: 12px;
font-weight: 800;
line-height: 1.45;
}
.policy-empty {
padding: 22px 10px;
color: var(--muted);
text-align: center;
font-size: 14px;
font-weight: 850;
line-height: 1.45;
}
.policy-level-list {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 12px;
}
.policy-level-row {
padding: 14px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
scroll-margin: 24px;
}
.policy-level-row.is-current-level {
border-color: var(--button, #7d57c7);
background: linear-gradient(180deg, #fbf8ff 0%, #fff 100%);
box-shadow:
0 0 0 1px var(--button, #7d57c7),
0 10px 22px rgba(125, 87, 199, 0.14);
}
.policy-row-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.policy-level {
color: var(--text);
font-size: 16px;
font-weight: 950;
line-height: 1.25;
}
.policy-effective {
color: var(--muted);
text-align: right;
font-size: 12px;
font-weight: 800;
line-height: 1.25;
}
.policy-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
margin-top: 12px;
}
.policy-cell {
min-width: 0;
}
.policy-cell-label {
display: block;
color: var(--muted);
font-size: 11px;
font-weight: 800;
line-height: 1.2;
}
.policy-cell-value {
display: block;
margin-top: 4px;
overflow-wrap: anywhere;
color: #292d33;
font-size: 14px;
font-weight: 950;
line-height: 1.25;
}
@media (max-width: 360px) {
.income-card,
.task-card {
padding-right: 18px;
padding-left: 18px;
}
.income-value {
font-size: 29px;
}
.task-grid {
grid-template-columns: 1fr;
}
.policy-grid {
grid-template-columns: 1fr;
}
}