2026-06-12 19:10:41 +08:00

611 lines
11 KiB
CSS

.manager-panel {
position: relative;
display: grid;
gap: 14px;
padding: 16px;
border: 1px solid rgba(125, 87, 199, 0.06);
}
.manager-center.is-loading .manager-grid {
min-height: 410px;
opacity: 0;
pointer-events: none;
}
.manager-center.is-loading .manager-panel::after {
position: absolute;
inset: 16px;
content: '';
border-radius: 10px;
background:
linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.72),
transparent
)
0 0 / 180px 100% no-repeat,
linear-gradient(#f1e7ff, #f1e7ff) 0 0 / 100% 132px no-repeat,
linear-gradient(#f1e7ff, #f1e7ff) 0 144px / 100% 132px no-repeat,
linear-gradient(#f1e7ff, #f1e7ff) 0 288px / 100% 104px no-repeat;
animation: managerSkeleton 1.1s linear infinite;
}
.manager-center.is-denied .manager-grid {
opacity: 0.46;
pointer-events: none;
}
@keyframes managerSkeleton {
0% {
background-position:
-180px 0,
0 0,
0 144px,
0 288px;
}
100% {
background-position:
calc(100% + 180px) 0,
0 0,
0 144px,
0 288px;
}
}
.manager-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.manager-tile {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 132px;
overflow: hidden;
padding: 14px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fbfcfc;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.95),
0 6px 16px rgba(99, 69, 159, 0.05);
text-align: left;
}
.manager-tile:active {
transform: translateY(1px);
}
.manager-tile:focus-visible {
outline: 2px solid rgba(125, 87, 199, 0.28);
outline-offset: 2px;
}
.manager-tile-wide {
grid-column: 1 / -1;
grid-template-columns: 92px minmax(0, 1fr);
flex-direction: row;
min-height: 104px;
align-items: center;
justify-content: flex-start;
gap: 16px;
}
.tile-title {
position: relative;
z-index: 1;
order: -1;
align-self: start;
min-width: 0;
overflow-wrap: anywhere;
color: var(--text);
font-size: 17px;
font-weight: 950;
letter-spacing: 0;
line-height: 1.16;
}
.manager-tile-wide .tile-title {
order: 0;
align-self: center;
font-size: 19px;
}
.tile-icon {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
justify-self: center;
width: 72px;
height: 72px;
margin: 14px auto 0;
border-radius: 8px;
}
.manager-tile-wide .tile-icon {
flex: 0 0 72px;
justify-self: start;
margin: 0;
}
.tile-icon svg {
width: 58px;
height: 58px;
}
.tile-icon path {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.8;
}
.level-icon {
color: #7d57c7;
background: #f4ebff;
}
.frame-icon {
color: #7d57c7;
background: #f4ebff;
}
.car-icon {
color: #4e78d7;
background: #eef4ff;
}
.vip-icon {
color: #d5a032;
background: #fff7dc;
}
.block-icon {
color: #d95d72;
background: #fff1f4;
}
.bd-leader-icon {
color: #3c8a6b;
background: #eaf8f1;
}
.admin-icon {
color: #4e78d7;
background: #eef4ff;
}
.superadmin-icon {
color: #bd6c2f;
background: #fff2e6;
}
.block-modal[hidden] {
display: none;
}
.block-modal {
position: fixed;
inset: 0;
z-index: 80;
display: flex;
align-items: flex-end;
justify-content: center;
padding: 18px;
}
.block-backdrop {
position: absolute;
inset: 0;
border: 0;
background: rgba(24, 21, 33, 0.48);
}
.block-dialog {
position: relative;
z-index: 1;
display: flex;
width: min(100%, 430px);
max-height: min(86dvh, 720px);
flex-direction: column;
overflow: hidden;
border-radius: 18px;
background: #fff;
box-shadow: 0 -8px 34px rgba(43, 34, 65, 0.18);
}
.block-dialog-header {
display: flex;
min-height: 64px;
align-items: center;
justify-content: space-between;
padding: 16px 18px;
border-bottom: 1px solid var(--line);
}
.block-dialog-header h2 {
margin: 0;
color: var(--text);
font-size: 20px;
font-weight: 950;
letter-spacing: 0;
line-height: 1.1;
}
.block-close {
display: flex;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
border: 0;
border-radius: 50%;
background: var(--primary-soft);
color: var(--primary-deep);
}
.block-close svg {
width: 22px;
height: 22px;
}
.block-close path {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-width: 3;
}
.block-dialog-body {
min-height: 0;
overflow-y: auto;
padding: 16px 18px 20px;
}
.block-field {
display: grid;
gap: 8px;
}
.block-field label,
.block-section-title {
color: var(--text);
font-size: 14px;
font-weight: 900;
line-height: 1.2;
}
.block-search-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 100px;
gap: 10px;
}
.block-search-row input {
min-width: 0;
height: 48px;
padding: 0 14px;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(252, 249, 255, 0.86);
color: var(--text);
font-size: 15px;
font-weight: 800;
outline: none;
}
.block-search-row input:focus {
border-color: rgba(125, 87, 199, 0.42);
box-shadow: 0 0 0 3px rgba(125, 87, 199, 0.12);
}
.block-search-row input::placeholder {
color: rgba(42, 38, 57, 0.38);
}
.block-search-row button,
.confirm-block-button,
.confirm-level-button,
.user-level-button,
.user-unblock-button,
.user-block-button {
border: 0;
border-radius: 8px;
background: var(--button);
color: #fff;
font-size: 14px;
font-weight: 950;
}
.block-search-row button {
height: 48px;
}
.block-search-result {
min-height: 28px;
margin-top: 12px;
}
.searched-user,
.blocked-row {
display: grid;
grid-template-columns: 48px minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
border: 1px solid var(--line);
border-radius: 8px;
background: rgba(255, 255, 255, 0.94);
}
.searched-user {
padding: 10px;
}
.searched-avatar,
.blocked-avatar {
overflow: hidden;
display: flex;
width: 48px;
height: 48px;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--primary);
color: var(--primary-deep);
font-size: 18px;
font-weight: 950;
}
.searched-avatar img,
.blocked-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.searched-name,
.blocked-name {
overflow: hidden;
color: var(--text);
font-size: 15px;
font-weight: 950;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.searched-meta,
.blocked-meta,
.blocked-time {
margin-top: 3px;
overflow: hidden;
color: var(--muted);
font-size: 12px;
font-weight: 800;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-block-button {
min-width: 70px;
height: 40px;
padding: 0 14px;
background: #d95d72;
}
.user-unblock-button {
min-width: 76px;
height: 38px;
padding: 0 12px;
border: 1px solid rgba(125, 87, 199, 0.22);
background: #fff;
color: var(--primary-deep);
font-size: 12px;
}
.block-duration-panel {
display: grid;
gap: 12px;
margin-top: 14px;
padding: 14px;
border: 1px solid rgba(125, 87, 199, 0.12);
border-radius: 10px;
background: rgba(248, 242, 255, 0.68);
}
.block-duration-panel[hidden] {
display: none;
}
.level-panel {
display: grid;
gap: 12px;
margin-top: 14px;
padding: 14px;
border: 1px solid rgba(125, 87, 199, 0.12);
border-radius: 10px;
background: rgba(248, 242, 255, 0.68);
}
.level-panel[hidden] {
display: none;
}
.duration-grid,
.track-grid,
.grant-option-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}
.level-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.duration-grid button,
.level-grid button,
.track-grid button,
.grant-option-grid button {
min-height: 38px;
padding: 0 8px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fff;
color: var(--muted);
font-size: 12px;
font-weight: 900;
}
.duration-grid button.is-selected,
.level-grid button.is-selected,
.track-grid button.is-selected,
.grant-option-grid button.is-selected {
border-color: var(--primary-deep);
background: var(--primary-deep);
color: #fff;
}
.grant-option-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grant-resource-option {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.confirm-block-button,
.confirm-level-button {
height: 46px;
}
.confirm-block-button:disabled,
.confirm-level-button:disabled {
background: var(--button-disabled);
color: rgba(42, 38, 57, 0.42);
}
.block-list-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 18px;
padding-top: 14px;
border-top: 1px solid var(--line);
}
.block-list-count {
min-width: 28px;
height: 24px;
padding: 0 8px;
border-radius: 999px;
background: var(--primary-soft);
color: var(--primary-deep);
font-size: 12px;
font-weight: 950;
line-height: 24px;
text-align: center;
}
.blocked-list {
display: grid;
max-height: 216px;
margin-top: 10px;
overflow-y: auto;
gap: 10px;
padding-right: 2px;
}
.blocked-row {
min-height: 76px;
padding: 10px;
}
.blocked-row-main {
min-width: 0;
}
.blocked-time {
color: #d95d72;
}
.blocked-empty {
display: flex;
min-height: 92px;
align-items: center;
justify-content: center;
border: 1px dashed var(--line);
border-radius: 8px;
color: var(--muted);
font-size: 13px;
font-weight: 850;
text-align: center;
}
@media (max-width: 360px) {
.manager-panel {
padding: 16px;
}
.manager-grid {
gap: 10px;
}
.manager-tile {
min-height: 126px;
padding: 12px 10px 14px;
}
.tile-title {
font-size: 16px;
}
.tile-icon {
width: 68px;
height: 68px;
}
.tile-icon svg {
width: 52px;
height: 52px;
}
.block-modal {
padding: 12px;
}
.block-dialog-header {
min-height: 58px;
padding: 14px 16px;
}
.block-dialog-body {
padding: 14px 16px 18px;
}
.block-search-row {
grid-template-columns: minmax(0, 1fr) 88px;
gap: 8px;
}
.duration-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.level-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}