2026-06-12 18:09:03 +08:00

754 lines
13 KiB
CSS

:root {
--page-bg: var(--hy-theme-bg, #f7f3ff);
--card-bg: var(--hy-theme-surface, rgba(255, 255, 255, 0.96));
--text: var(--hy-theme-text, #282333);
--muted: var(--hy-theme-muted, #8d879a);
--line: var(--hy-theme-line, #eee7f8);
--primary: var(--hy-theme-primary, #dbc8ff);
--primary-soft: var(--hy-theme-primary-soft, #f4ebff);
--primary-strong: var(--hy-theme-primary-strong, #c5a6f6);
--primary-deep: var(--hy-theme-primary-deep, #7d57c7);
--button: var(--hy-theme-button, #7d57c7);
--button-disabled: var(--hy-theme-button-disabled, #c5a6f6);
--shadow: var(--hy-theme-shadow, 0 10px 26px rgba(109, 69, 189, 0.1));
--danger: var(--hy-theme-danger, #d95d72);
--success: var(--hy-theme-success, #31c6a8);
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
min-height: 100%;
margin: 0;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
}
body {
display: flex;
justify-content: center;
background: #111;
color: var(--text);
font-family:
Inter,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Helvetica,
Arial,
sans-serif;
}
button,
input {
font: inherit;
}
button {
border: 0;
padding: 0;
background: transparent;
color: inherit;
}
button:focus,
input:focus {
outline: none;
}
button:focus-visible,
input:focus-visible {
outline: 2px solid rgba(125, 87, 199, 0.32);
outline-offset: 2px;
}
[hidden] {
display: none !important;
}
.host-center,
.bd-center,
.agency-center,
.superadmin-center,
.coinseller-center,
.manager-center {
position: relative;
width: 100%;
max-width: 430px;
min-height: 100vh;
min-height: 100dvh;
overflow: hidden;
background:
linear-gradient(
145deg,
rgba(255, 255, 255, 0.82),
rgba(250, 246, 255, 0) 42%
),
var(--page-bg);
}
.hero-bg {
position: absolute;
inset: 0 0 auto;
height: 215px;
background: var(
--hy-theme-hero,
linear-gradient(
151deg,
#f0e6ff 0%,
#fffbff 58%,
rgba(250, 246, 255, 0.82) 100%
)
);
clip-path: polygon(0 0, 100% 0, 100% 76%, 70% 47%, 40% 58%, 0 78%);
}
.title-bar,
.content,
.home-indicator {
position: relative;
z-index: 1;
}
.title-bar {
display: grid;
grid-template-columns: 52px 1fr 52px;
align-items: center;
z-index: 3;
height: 60px;
padding: 0 14px;
direction: ltr;
}
.title-bar h1 {
margin: 0;
color: var(--text);
font-size: 22px;
font-weight: 900;
line-height: 1;
text-align: center;
}
.back-button {
display: flex;
align-items: center;
justify-content: flex-start;
width: 44px;
height: 44px;
}
.back-button svg {
width: 28px;
height: 28px;
}
.back-button path {
fill: none;
stroke: var(--text);
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 3;
}
.language-switcher {
position: relative;
justify-self: end;
}
.language-button {
display: flex;
align-items: center;
justify-content: center;
width: 42px;
height: 30px;
border: 1px solid rgba(35, 40, 46, 0.12);
border-radius: 15px;
background: rgba(255, 255, 255, 0.68);
color: var(--text);
font-size: 13px;
font-weight: 900;
box-shadow: 0 4px 12px rgba(43, 118, 107, 0.08);
}
.language-menu {
position: absolute;
z-index: 20;
top: calc(100% + 7px);
right: 0;
display: grid;
gap: 2px;
min-width: 72px;
padding: 5px;
border: 1px solid rgba(35, 40, 46, 0.1);
border-radius: 8px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 10px 26px rgba(36, 46, 60, 0.14);
}
.language-menu button {
min-height: 34px;
border-radius: 6px;
color: var(--text);
font-size: 12px;
font-weight: 900;
}
.language-menu button.is-active {
background: var(--primary-soft);
color: var(--primary-deep);
}
.content {
display: flex;
flex-direction: column;
gap: 15px;
padding: 8px 14px 90px;
}
.card {
width: 100%;
border-radius: 8px;
background: var(--card-bg);
box-shadow: var(--shadow);
}
.profile-card {
display: flex;
align-items: center;
min-height: 103px;
padding: 16px 24px;
}
.avatar-shell {
position: relative;
width: 64px;
height: 64px;
flex: 0 0 64px;
}
.avatar-image,
.avatar-fallback {
width: 64px;
height: 64px;
border-radius: 50%;
}
.avatar-image {
display: block;
object-fit: cover;
}
.avatar-fallback {
display: flex;
align-items: center;
justify-content: center;
background: var(--primary);
color: var(--primary-deep);
font-size: 24px;
font-weight: 950;
}
.profile-copy {
min-width: 0;
margin-left: 20px;
}
.name {
overflow: hidden;
color: var(--text);
font-size: 20px;
font-weight: 900;
line-height: 1.1;
text-overflow: ellipsis;
white-space: nowrap;
}
.meta {
margin-top: 6px;
overflow: hidden;
color: var(--muted);
font-size: 13px;
font-weight: 750;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.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: centerSkeleton 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,
.balance-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 centerSkeleton {
0% {
background-position: 120% 0;
}
100% {
background-position: -120% 0;
}
}
.text-link,
.salary-link {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
min-height: 34px;
color: var(--primary-deep);
font-size: 13px;
font-weight: 900;
white-space: nowrap;
}
.menu-card {
display: grid;
padding: 0 16px;
}
.menu-row {
position: relative;
display: grid;
grid-template-columns: 38px minmax(0, 1fr) 24px;
gap: 12px;
align-items: center;
min-height: 64px;
border-bottom: 1px solid var(--line);
text-align: left;
}
.menu-row .message-unread-dot {
position: absolute;
top: 20px;
right: 24px;
width: 9px;
height: 9px;
border: 2px solid #fff;
border-radius: 50%;
background: #ff3b30;
}
.menu-row:last-child {
border-bottom: 0;
}
.menu-icon {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 50%;
background: var(--primary-soft);
color: var(--primary-deep);
}
.menu-icon svg {
width: 20px;
height: 20px;
}
.menu-icon path {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
}
.menu-label {
min-width: 0;
overflow: hidden;
color: #464951;
font-size: 16px;
font-weight: 850;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.menu-count {
color: var(--muted);
font-size: 13px;
font-weight: 900;
white-space: nowrap;
}
.chevron {
color: var(--muted);
font-size: 24px;
font-weight: 500;
line-height: 1;
text-align: right;
}
.message-unread-dot {
position: absolute;
top: 7px;
right: 7px;
width: 9px;
height: 9px;
border: 2px solid #fff;
border-radius: 50%;
background: #ff3b30;
}
.menu-row .message-unread-dot {
position: relative;
top: auto;
right: auto;
flex: 0 0 9px;
}
.sheet-modal,
.message-modal,
.invite-modal {
position: fixed;
z-index: 24;
inset: 0;
display: flex;
justify-content: center;
}
.sheet-modal {
align-items: flex-end;
padding: 0 0 env(safe-area-inset-bottom);
}
.message-modal,
.invite-modal {
align-items: center;
padding: 18px;
}
.modal-backdrop {
position: absolute;
inset: 0;
background: rgba(15, 21, 28, 0.38);
}
.bottom-sheet {
position: relative;
display: flex;
flex-direction: column;
width: min(430px, 100%);
max-height: 80vh;
max-height: 80dvh;
overflow: hidden;
border-radius: 16px 16px 0 0;
background: #fff;
box-shadow: 0 -14px 34px rgba(23, 31, 42, 0.16);
}
.sheet-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 58px;
padding: 16px 18px 12px;
border-bottom: 1px solid var(--line);
}
.sheet-head h2 {
margin: 0;
color: var(--text);
font-size: 18px;
font-weight: 950;
line-height: 1.2;
}
.sheet-close {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 50%;
background: var(--primary-soft);
color: var(--primary-deep);
font-size: 25px;
font-weight: 500;
line-height: 1;
}
.message-dialog {
position: relative;
display: flex;
flex-direction: column;
width: min(394px, 100%);
max-height: 78vh;
max-height: 78dvh;
overflow: hidden;
border-radius: 14px;
background: #fff;
box-shadow: 0 18px 44px rgba(23, 31, 42, 0.2);
}
.message-list {
display: grid;
gap: 10px;
min-height: 0;
overflow-y: auto;
padding: 14px 18px max(18px, env(safe-area-inset-bottom));
-webkit-overflow-scrolling: touch;
}
.sheet-empty {
padding: 24px 18px max(24px, env(safe-area-inset-bottom));
color: var(--muted);
text-align: center;
font-size: 14px;
font-weight: 850;
}
.message-card {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px;
align-items: center;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fbfcfc;
}
.message-user {
display: flex;
align-items: center;
min-width: 0;
}
.small-avatar,
.message-avatar {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
flex: 0 0 46px;
overflow: hidden;
border-radius: 50%;
background: var(--primary);
color: var(--primary-deep);
font-size: 18px;
font-weight: 950;
}
.small-avatar img,
.message-avatar img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.message-copy {
min-width: 0;
margin-left: 12px;
}
.message-name {
overflow: hidden;
color: var(--text);
font-size: 15px;
font-weight: 950;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.message-id {
margin-top: 5px;
overflow: hidden;
color: var(--muted);
font-size: 12px;
font-weight: 800;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.message-actions {
display: flex;
gap: 6px;
}
.message-action {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 54px;
min-height: 34px;
padding: 0 10px;
border-radius: 8px;
font-size: 12px;
font-weight: 950;
white-space: nowrap;
}
.message-action:disabled {
opacity: 0.58;
}
.message-action.agree {
background: var(--button);
color: #fff;
}
.message-action.refuse {
background: #f1edf8;
color: var(--text);
}
.home-indicator {
position: absolute;
left: 50%;
bottom: 8px;
width: 154px;
height: 5px;
border-radius: 999px;
background: #050506;
transform: translateX(-50%);
}
.modal-open {
overflow: hidden;
}
[dir='rtl'] .content,
[dir='rtl'] .bottom-sheet,
[dir='rtl'] .message-dialog,
[dir='rtl'] .invite-dialog {
direction: rtl;
}
[dir='rtl'] .profile-copy {
margin-right: 20px;
margin-left: 0;
text-align: right;
}
[dir='rtl'] .menu-row {
text-align: right;
}
[dir='rtl'] .chevron {
transform: rotate(180deg);
}
@media (max-width: 360px) {
.content {
padding-right: 12px;
padding-left: 12px;
}
.profile-card {
padding-right: 18px;
padding-left: 18px;
}
.profile-copy {
margin-left: 14px;
}
}