698 lines
15 KiB
CSS
698 lines
15 KiB
CSS
/**
|
|
* User Center — account settings + invite panel
|
|
*/
|
|
|
|
/* 消息通知偏好 */
|
|
.uc-notification-preferences__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
}
|
|
|
|
.uc-notification-preferences__header h2 {
|
|
margin: 0 0 6px;
|
|
color: var(--color-ink);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.uc-notification-preferences__header p {
|
|
margin: 0;
|
|
color: var(--color-ink-4);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.uc-notification-preferences__header-icon {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
flex: 0 0 44px;
|
|
border-radius: 14px;
|
|
color: var(--color-primary);
|
|
background: var(--color-primary-soft);
|
|
font-size: 18px;
|
|
}
|
|
|
|
.uc-notification-preferences__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.uc-notification-preference {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
min-height: 82px;
|
|
padding: 18px 0;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
cursor: pointer;
|
|
}
|
|
|
|
.uc-notification-preference__copy {
|
|
display: flex;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.uc-notification-preference__copy strong {
|
|
color: var(--color-ink);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.uc-notification-preference__copy small {
|
|
color: var(--color-ink-4);
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.uc-notification-switch {
|
|
position: relative;
|
|
display: inline-flex;
|
|
width: 44px;
|
|
height: 24px;
|
|
flex: 0 0 44px;
|
|
}
|
|
|
|
.uc-notification-switch input[type='checkbox'] {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
width: 100%;
|
|
min-width: 0;
|
|
height: 100%;
|
|
margin: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
opacity: 0 !important;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.uc-notification-switch input[type='checkbox']::before,
|
|
.uc-notification-switch input[type='checkbox']::after {
|
|
display: none !important;
|
|
content: none !important;
|
|
}
|
|
|
|
.uc-notification-switch span {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 999px;
|
|
background: var(--color-line, #cbd5e1);
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.uc-notification-switch span::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
box-shadow: 0 1px 3px rgba(15,23,42,0.22);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.uc-notification-switch input:checked + span {
|
|
background: var(--color-primary);
|
|
}
|
|
|
|
.uc-notification-switch input:checked + span::after {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
.uc-notification-switch input:focus-visible + span {
|
|
outline: 2px solid var(--color-primary);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.uc-notification-preferences__footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.uc-notification-preferences__footer .btn-primary {
|
|
min-width: 112px;
|
|
}
|
|
|
|
/* 设置区增强 */
|
|
.uc-content .settings-section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.uc-content .settings-section__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.uc-content .settings-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--color-primary);
|
|
color: #fff;
|
|
font-size: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.uc-content .settings-section__title {
|
|
margin: 0;
|
|
border: 0;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.uc-content .settings-section__title::before {
|
|
display: none;
|
|
}
|
|
|
|
/* 安全操作项增强 */
|
|
.uc-content .security-action-item {
|
|
border: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
border-radius: 10px;
|
|
padding: 16px;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.uc-content .security-action-item:hover {
|
|
border-color: var(--color-primary-soft);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
}
|
|
|
|
/* 邀请区增强 */
|
|
.uc-content .aksrt-invite-panel {
|
|
padding: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-hero {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
padding: 0 0 16px;
|
|
background: transparent;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
}
|
|
|
|
.uc-content .aksrt-invite-hero__main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-kicker {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 22px;
|
|
padding: 0 9px;
|
|
margin-bottom: 8px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--color-primary);
|
|
background: var(--color-primary-soft);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-desc {
|
|
max-width: 620px;
|
|
font-size: 14px;
|
|
line-height: 1.7;
|
|
color: var(--color-ink-3);
|
|
margin: 0;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-code-card {
|
|
flex: 0 0 auto;
|
|
min-width: 118px;
|
|
align-self: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
padding: 0 0 0 18px;
|
|
border-left: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
background: transparent;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-code-card span {
|
|
font-size: 12px;
|
|
color: var(--color-ink-4);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-code-card strong {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.04em;
|
|
color: var(--color-ink);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-link-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 16px 0;
|
|
margin-bottom: 0;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
}
|
|
|
|
.uc-content .aksrt-invite-link-row input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 40px;
|
|
padding: 0 12px;
|
|
border: 1px solid var(--color-line-soft, rgba(0,0,0,0.08));
|
|
border-radius: 8px;
|
|
color: var(--color-ink-2);
|
|
background: var(--surface-2);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-copy {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 104px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 0;
|
|
padding: 14px 0;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
}
|
|
|
|
.uc-content .aksrt-invite-stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
padding: 2px 18px;
|
|
border-right: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
background: transparent;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-stat:first-child {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-stat:last-child {
|
|
padding-right: 0;
|
|
border-right: 0;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-stat span {
|
|
font-size: 12px;
|
|
color: var(--color-ink-4);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-stat strong {
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
line-height: 1.1;
|
|
color: var(--color-primary);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-stat small {
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
color: var(--color-ink-4);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-records {
|
|
border-top: 0;
|
|
padding: 16px 0 0;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-records__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-records__header h4 {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--color-ink);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-records__header span {
|
|
font-size: 12px;
|
|
color: var(--color-ink-4);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-height: 66px;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.05));
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record__avatar {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--surface-2);
|
|
color: var(--color-ink-3);
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record__avatar img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record__main {
|
|
min-width: 0;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record__main strong {
|
|
font-size: 14px;
|
|
line-height: 1.3;
|
|
color: var(--color-ink);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record__main span {
|
|
font-size: 12px;
|
|
color: var(--color-ink-4);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record__status {
|
|
flex: 0 0 auto;
|
|
min-width: 118px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 5px;
|
|
text-align: right;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 24px;
|
|
padding: 0 9px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.uc-content .aksrt-invite-badge.is-registered {
|
|
color: #2563eb;
|
|
background: rgba(37, 99, 235, 0.10);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-badge.is-verified {
|
|
color: #7c3aed;
|
|
background: rgba(124, 58, 237, 0.10);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-badge.is-rewarded {
|
|
color: #16a34a;
|
|
background: rgba(22, 163, 74, 0.10);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record__status small {
|
|
font-size: 12px;
|
|
color: var(--color-ink-4);
|
|
}
|
|
|
|
.uc-content .aksrt-invite-record-empty {
|
|
padding: 22px 0;
|
|
border: 0;
|
|
border-top: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
|
|
text-align: center;
|
|
font-size: 13px;
|
|
color: var(--color-ink-4);
|
|
background: transparent;
|
|
}
|
|
|
|
|
|
/* Tip QR upload on profile */
|
|
.aksrt-reward-upload-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 16px;
|
|
margin-top: 12px;
|
|
}
|
|
.aksrt-reward-upload__preview {
|
|
min-height: 140px;
|
|
border: 1px dashed rgba(127,127,127,.35);
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
margin: 8px 0;
|
|
background: rgba(127,127,127,.04);
|
|
}
|
|
.aksrt-reward-upload__preview img {
|
|
max-width: 100%;
|
|
max-height: 180px;
|
|
object-fit: contain;
|
|
display: block;
|
|
}
|
|
.aksrt-reward-upload__file {
|
|
display: none;
|
|
}
|
|
.aksrt-reward-upload .btn-sm,
|
|
.aksrt-reward-upload .btn-primary {
|
|
margin-right: 8px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
|
|
/* ==================== 官方认证面板 ==================== */
|
|
/* 面板内容为 Zibll 同款 colorful-bg hero 卡片(参考主题 1:1),去掉外层白卡壳 */
|
|
.uc-content #panel-auth.dashboard-panel {
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* 认证按钮(Zibll .but.jb-blue.padding-lg.btn-block 工具类) */
|
|
.uc-content #panel-auth .but[data-auth-modal-open] {
|
|
width: 100%;
|
|
margin: 20px 0 0;
|
|
}
|
|
|
|
.aksrt-identity-modal-shell .aksrt-modal-runtime__dialog {
|
|
width: min(600px, calc(100vw - 20px));
|
|
max-width: 600px;
|
|
max-height: calc(100vh - 20px);
|
|
max-height: calc(100dvh - 20px);
|
|
overflow: auto;
|
|
border-radius: var(--main-radius, 8px);
|
|
background: var(--main-bg-color, var(--surface-1, #fff));
|
|
}
|
|
.aksrt-identity-modal-shell .aksrt-modal-runtime__content { padding: 0; }
|
|
.uc-auth-modal {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 1px;
|
|
border-radius: var(--main-radius, 8px);
|
|
background: var(--main-bg-color, var(--surface-1, #fff));
|
|
}
|
|
.uc-auth-modal__header,
|
|
.uc-auth-modal__header.colorful-bg {
|
|
position: absolute;
|
|
top: 1px;
|
|
right: 1px;
|
|
left: 1px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 120px;
|
|
overflow: hidden;
|
|
border-radius: var(--main-radius, 8px) var(--main-radius, 8px) 0 0;
|
|
background: var(--this-bg);
|
|
background-size: 120%;
|
|
color: var(--this-color);
|
|
}
|
|
.uc-auth-modal__header > .close {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
z-index: 9;
|
|
width: 30px;
|
|
height: 30px;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--this-color);
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
opacity: .6;
|
|
cursor: pointer;
|
|
}
|
|
.uc-auth-modal__header > .close:hover { opacity: 1; }
|
|
.uc-auth-modal__header .colorful-make,
|
|
.uc-auth-modal__header .colorful-make::before,
|
|
.uc-auth-modal__header .colorful-make::after {
|
|
position: absolute;
|
|
border-radius: 100%;
|
|
background: var(--this-bg);
|
|
color: var(--this-color);
|
|
content: '';
|
|
}
|
|
.uc-auth-modal__header .colorful-make {
|
|
top: 60%;
|
|
bottom: 0;
|
|
width: 323px;
|
|
height: 290px;
|
|
animation: uc-auth-colorful 120s linear infinite;
|
|
}
|
|
.uc-auth-modal__header .colorful-make::before {
|
|
top: -325px;
|
|
right: -558px;
|
|
bottom: 0;
|
|
width: 677px;
|
|
height: 300px;
|
|
transform: rotate(341deg);
|
|
opacity: .6;
|
|
}
|
|
.uc-auth-modal__header .colorful-make::after {
|
|
top: -170px;
|
|
bottom: 0;
|
|
left: -262px;
|
|
width: 402px;
|
|
height: 214px;
|
|
transform: rotate(326deg);
|
|
opacity: .4;
|
|
}
|
|
.uc-auth-modal__header .colorful-make + * { position: relative; }
|
|
.uc-auth-modal__body {
|
|
position: relative;
|
|
margin-top: 120px;
|
|
padding: 15px;
|
|
background: var(--main-bg-color, var(--surface-1, #fff));
|
|
}
|
|
.uc-auth-form { margin: 0; }
|
|
.uc-auth-form__scroll { max-height: 50vh; max-height: 50dvh; }
|
|
.uc-auth-intro ul,
|
|
.uc-auth-intro ol {
|
|
margin: .6em 0 1em;
|
|
padding-left: 1.5em;
|
|
}
|
|
.uc-auth-intro ul { list-style: disc outside; }
|
|
.uc-auth-intro ol { list-style: decimal outside; }
|
|
.uc-auth-intro li { margin-bottom: .35em; }
|
|
.uc-auth-field { display: block; color: var(--muted-2-color); font-size: .9em; font-weight: 400; }
|
|
.uc-auth-field__label { display: block; margin-bottom: 6px; }
|
|
.uc-auth-form .form-control { width: 100%; box-sizing: border-box; }
|
|
.uc-auth-form textarea.form-control { resize: vertical; }
|
|
.uc-auth-upload .preview .add {
|
|
appearance: none;
|
|
padding: 0;
|
|
border: 0;
|
|
cursor: pointer;
|
|
}
|
|
.uc-auth-upload .preview-item { overflow: hidden; }
|
|
.uc-auth-upload .preview-item img { object-fit: contain; }
|
|
.uc-auth-preview-remove {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: #fd2c53;
|
|
color: #fff;
|
|
font-size: 20px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
}
|
|
.aksrt-identity-modal-shell .uc-auth-modal .uc-auth-modal__body .uc-auth-modal__footer {
|
|
display: flex;
|
|
grid-template-columns: none;
|
|
gap: 0;
|
|
margin: 0 -15px -15px;
|
|
overflow: hidden;
|
|
border-top: 1px solid var(--main-border-color, var(--color-line, rgba(50, 50, 50, .12)));
|
|
border-radius: 0 0 var(--main-radius, 8px) var(--main-radius, 8px);
|
|
}
|
|
.aksrt-identity-modal-shell .uc-auth-modal .uc-auth-modal__body .uc-auth-modal__footer > .but {
|
|
display: flex;
|
|
flex: 1 1 50%;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 48px;
|
|
margin: 0 !important;
|
|
padding: .8em;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: var(--muted-color, #888);
|
|
font: inherit;
|
|
font-weight: 400;
|
|
cursor: pointer;
|
|
}
|
|
.aksrt-identity-modal-shell .uc-auth-modal .uc-auth-modal__body .uc-auth-modal__footer > .but + .but {
|
|
border-left: 1px solid var(--main-border-color, var(--color-line, rgba(50, 50, 50, .12)));
|
|
}
|
|
.aksrt-identity-modal-shell .uc-auth-modal .uc-auth-modal__body .uc-auth-modal__footer > .but.c-blue {
|
|
background: transparent;
|
|
color: var(--this-color, #2997f7);
|
|
}
|
|
.aksrt-identity-modal-shell .uc-auth-modal .uc-auth-modal__body .uc-auth-modal__footer > .but:hover {
|
|
background: var(--this-bg, rgba(136, 136, 136, .1));
|
|
}
|
|
.aksrt-identity-modal-shell .uc-auth-modal .uc-auth-modal__body .uc-auth-modal__footer > .but:disabled { opacity: .5; cursor: wait; }
|
|
@keyframes uc-auth-colorful { to { transform: rotate(360deg); } }
|
|
|
|
@media (max-width: 768px) {
|
|
.aksrt-identity-modal-shell.aksrt-modal-runtime--bottom .aksrt-modal-runtime__dialog {
|
|
width: calc(100% - 20px);
|
|
max-width: none;
|
|
max-height: calc(100dvh - 30px - env(safe-area-inset-bottom));
|
|
margin: 0 10px calc(10px + env(safe-area-inset-bottom));
|
|
}
|
|
}
|