2026-06-25 19:11:22 +08:00

933 lines
15 KiB
CSS

:root {
--page-bg: #f5f6f8;
--card-bg: #ffffff;
--text: #20242a;
--muted: #7c8592;
--line: #e7ebf0;
--primary: #18b89f;
--primary-dark: #0b8b79;
--danger: #d83c3c;
--danger-bg: #fff0f0;
--gold: #c79633;
--shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}
* {
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: #16191d;
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.is-modal-open {
overflow: hidden;
}
button,
input,
textarea {
font: inherit;
}
button {
border: 0;
}
button:disabled {
cursor: not-allowed;
opacity: 0.48;
}
[hidden] {
display: none !important;
}
.manager-center {
position: relative;
width: 100%;
max-width: 430px;
min-height: 100vh;
overflow: hidden;
background:
linear-gradient(180deg, #eaf7f4 0, #f5f6f8 210px),
var(--page-bg);
}
.manager-center[data-loading="true"] .title-bar,
.manager-center[data-loading="true"] .content {
visibility: hidden;
}
.title-bar {
position: relative;
z-index: 2;
display: grid;
grid-template-columns: 48px 1fr 48px;
align-items: center;
min-height: 60px;
padding: env(safe-area-inset-top) 14px 0;
}
.title-bar h1 {
margin: 0;
text-align: center;
font-size: 20px;
font-weight: 800;
letter-spacing: 0;
}
.back-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.76);
color: var(--text);
box-shadow: 0 4px 14px rgba(32, 36, 42, 0.08);
}
.back-button svg {
width: 26px;
height: 26px;
fill: none;
stroke: currentColor;
stroke-width: 3;
stroke-linecap: round;
stroke-linejoin: round;
}
.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.76);
color: var(--text);
font-size: 13px;
font-weight: 900;
box-shadow: 0 4px 14px rgba(32, 36, 42, 0.08);
}
.language-menu {
position: absolute;
z-index: 8;
top: calc(100% + 7px);
right: 0;
display: grid;
gap: 2px;
min-width: 58px;
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: 28px;
border-radius: 6px;
color: var(--text);
font-size: 12px;
font-weight: 900;
}
.language-menu button.is-active {
background: #e7f8f4;
color: var(--primary-dark);
}
.language-menu[hidden] {
display: none;
}
.content {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 12px;
padding: 12px 14px calc(28px + env(safe-area-inset-bottom));
}
.card {
border: 1px solid rgba(231, 235, 240, 0.9);
border-radius: 8px;
background: var(--card-bg);
box-shadow: var(--shadow);
}
.profile-card,
.target-card {
display: flex;
gap: 12px;
align-items: center;
min-height: 96px;
padding: 14px;
}
.avatar-shell {
position: relative;
flex: 0 0 58px;
width: 58px;
height: 58px;
overflow: hidden;
border-radius: 50%;
background: #dfe7ea;
}
.avatar-shell img,
.avatar-shell span {
display: block;
width: 100%;
height: 100%;
}
.avatar-shell img {
object-fit: cover;
}
.avatar-shell span {
display: flex;
align-items: center;
justify-content: center;
color: #51606d;
font-size: 24px;
font-weight: 800;
}
.profile-copy {
min-width: 0;
}
.eyebrow {
margin-bottom: 4px;
color: var(--primary-dark);
font-size: 12px;
font-weight: 800;
}
.name {
overflow: hidden;
color: var(--text);
font-size: 17px;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.meta {
margin-top: 3px;
color: var(--muted);
font-size: 13px;
}
.pill-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.status-pill,
.danger-chip {
display: inline-flex;
align-items: center;
min-height: 24px;
border-radius: 999px;
padding: 0 9px;
background: #edf5f2;
color: #315e56;
font-size: 12px;
font-weight: 800;
}
.status-pill.is-danger,
.danger-chip.is-danger {
background: var(--danger-bg);
color: var(--danger);
}
.search-card {
padding: 14px;
}
.action-card {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
padding: 12px;
}
.action-item {
position: relative;
display: grid;
grid-template-columns: 44px minmax(0, 1fr);
gap: 8px;
align-items: center;
width: 100%;
min-height: 112px;
border: 1px solid var(--line);
border-radius: 6px;
padding: 12px;
background: #fff;
color: var(--text);
text-align: left;
}
.action-item:active {
background: #f4f7f8;
}
.action-item:disabled {
color: #9aa4af;
cursor: not-allowed;
}
.action-item.is-feature-disabled {
background: #f7f8fa;
}
.action-item-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 8px;
background: #e7f8f4;
color: var(--primary-dark);
}
.action-item.is-danger .action-item-icon {
background: var(--danger-bg);
color: var(--danger);
}
.action-item-icon svg,
.action-item-arrow {
width: 22px;
height: 22px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.2;
}
.action-item-copy {
display: grid;
grid-column: 1 / -1;
gap: 4px;
min-width: 0;
}
.action-item-title {
overflow: hidden;
font-size: 15px;
font-weight: 900;
text-overflow: ellipsis;
white-space: nowrap;
}
.action-item-subtitle {
overflow: hidden;
color: var(--muted);
font-size: 12px;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.action-item-arrow {
position: absolute;
top: 14px;
right: 12px;
color: #9aa4af;
}
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 12px;
}
.section-head h2 {
margin: 0;
font-size: 16px;
font-weight: 900;
letter-spacing: 0;
}
.section-subtitle {
margin-top: 3px;
color: var(--muted);
font-size: 12px;
font-weight: 800;
}
.text-button {
flex: 0 0 auto;
min-height: 32px;
border-radius: 8px;
padding: 0 10px;
background: #e7f8f4;
color: var(--primary-dark);
font-size: 12px;
font-weight: 900;
}
.bd-leader-card {
padding: 14px;
}
.bd-leader-list {
display: grid;
gap: 8px;
max-height: min(54vh, 420px);
overflow-y: auto;
padding-right: 2px;
overscroll-behavior: contain;
}
.bd-leader-row {
display: grid;
grid-template-columns: 42px minmax(0, 1fr) auto;
gap: 10px;
align-items: center;
min-height: 58px;
border: 1px solid var(--line);
border-radius: 8px;
padding: 8px;
background: #fff;
}
.bd-leader-avatar {
width: 42px;
height: 42px;
overflow: hidden;
border-radius: 50%;
background: #eef2f5;
}
.bd-leader-avatar img,
.bd-leader-avatar span {
display: block;
width: 100%;
height: 100%;
}
.bd-leader-avatar img {
object-fit: cover;
}
.bd-leader-avatar span {
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-dark);
font-weight: 900;
}
.bd-leader-copy {
display: grid;
gap: 2px;
min-width: 0;
}
.bd-leader-name {
overflow: hidden;
font-size: 14px;
font-weight: 900;
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
}
.bd-leader-meta,
.bd-leader-time {
color: var(--muted);
font-size: 11px;
font-weight: 800;
line-height: 14px;
}
.bd-leader-time {
max-width: 76px;
text-align: right;
}
.search-form {
display: grid;
grid-template-columns: 1fr 88px;
gap: 8px;
}
input,
textarea {
width: 100%;
border: 1px solid var(--line);
border-radius: 8px;
outline: none;
background: #f9fafb;
color: var(--text);
}
input,
button.custom-select-button {
height: 44px;
}
input {
padding: 0 12px;
}
textarea {
min-height: 84px;
resize: none;
padding: 12px;
}
input:focus,
textarea:focus {
border-color: var(--primary);
background: #fff;
box-shadow: 0 0 0 3px rgba(24, 184, 159, 0.13);
}
.search-form button,
.primary-action,
.danger-action {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
border-radius: 8px;
padding: 0 16px;
color: #fff;
font-weight: 900;
}
.search-form button,
.primary-action {
background: var(--primary);
}
.danger-action {
width: 100%;
margin-top: 10px;
background: var(--danger);
}
.primary-action {
width: 100%;
margin-top: 12px;
}
.field-label {
display: block;
margin-bottom: 8px;
color: var(--muted);
font-size: 13px;
font-weight: 800;
}
.current-country {
margin: 0 0 10px;
border-radius: 8px;
padding: 9px 10px;
background: #f1f5f9;
color: #475569;
font-size: 13px;
font-weight: 800;
}
.custom-select {
position: relative;
}
.custom-select-button {
display: grid;
grid-template-columns: minmax(0, 1fr) 24px;
align-items: center;
width: 100%;
border: 1px solid var(--primary);
border-radius: 8px;
padding: 0 12px 0 14px;
background: #fff;
color: var(--text);
text-align: left;
box-shadow: 0 0 0 5px rgba(24, 184, 159, 0.1);
}
.custom-select-button span {
overflow: hidden;
font-size: 16px;
font-weight: 800;
text-overflow: ellipsis;
white-space: nowrap;
}
.custom-select-button svg {
width: 22px;
height: 22px;
fill: none;
justify-self: end;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2.2;
transition: transform 0.16s ease;
}
.custom-select.is-open .custom-select-button svg {
transform: rotate(180deg);
}
.custom-select-menu {
position: absolute;
z-index: 12;
top: calc(100% + 8px);
right: 0;
left: 0;
display: grid;
gap: 4px;
max-height: 220px;
overflow-y: auto;
border: 1px solid rgba(35, 40, 46, 0.1);
border-radius: 8px;
padding: 6px;
background: rgba(255, 255, 255, 0.98);
box-shadow: 0 16px 36px rgba(32, 36, 42, 0.18);
}
.custom-select-menu button {
min-height: 36px;
border-radius: 6px;
padding: 0 11px;
background: transparent;
color: var(--text);
font-size: 14px;
font-weight: 800;
text-align: left;
}
.custom-select-menu button.is-selected {
background: #e7f8f4;
color: var(--primary-dark);
}
.custom-select-menu button:active {
background: #dff4ef;
}
.custom-select-menu[hidden] {
display: none;
}
.props-list {
display: grid;
gap: 6px;
max-height: 330px;
margin-top: 10px;
overflow-y: auto;
padding-right: 2px;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: rgba(24, 184, 159, 0.45) transparent;
}
.props-list::-webkit-scrollbar {
width: 5px;
}
.props-list::-webkit-scrollbar-thumb {
border-radius: 999px;
background: rgba(24, 184, 159, 0.42);
}
.prop-option {
display: grid;
grid-template-columns: 42px minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
width: 100%;
min-height: 54px;
border: 1px solid var(--line);
border-radius: 8px;
padding: 6px 8px;
background: #fff;
color: inherit;
text-align: left;
}
.prop-option.is-selected {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(24, 184, 159, 0.13);
}
.prop-cover {
width: 42px;
height: 42px;
overflow: hidden;
border-radius: 7px;
background: #eef2f5;
}
.prop-cover img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.prop-cover span {
display: flex;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
color: var(--gold);
font-weight: 900;
}
.prop-copy {
display: grid;
gap: 2px;
min-width: 0;
}
.prop-name {
overflow: hidden;
font-size: 14px;
font-weight: 900;
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
}
.prop-meta {
color: var(--muted);
font-size: 11px;
line-height: 14px;
}
.prop-days {
border-radius: 999px;
padding: 4px 8px;
background: #f2f4f7;
color: #596273;
font-size: 11px;
font-weight: 900;
}
.form-status,
.props-status {
margin-top: 10px;
border-radius: 8px;
padding: 9px 10px;
background: #f1f5f9;
color: #475569;
font-size: 13px;
font-weight: 700;
}
.form-status.is-error,
.props-status.is-error {
background: var(--danger-bg);
color: var(--danger);
}
.modal-mask {
position: fixed;
z-index: 30;
inset: 0;
display: flex;
align-items: flex-end;
justify-content: center;
padding-top: 48px;
background: rgba(17, 24, 32, 0.48);
}
.modal-sheet {
display: flex;
width: min(100%, 430px);
max-height: calc(100vh - 48px);
flex-direction: column;
overflow: hidden;
border-radius: 8px 8px 0 0;
background: var(--card-bg);
box-shadow: 0 -18px 44px rgba(17, 24, 32, 0.22);
}
.modal-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 14px 10px;
border-bottom: 1px solid var(--line);
}
.modal-head h2 {
margin: 0;
font-size: 17px;
font-weight: 900;
letter-spacing: 0;
}
.modal-close {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 34px;
width: 34px;
height: 34px;
border-radius: 50%;
background: #f2f4f7;
color: #48525f;
}
.modal-close svg {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-width: 2.4;
}
.modal-body {
overflow-y: auto;
padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
}
.modal-body .danger-chip {
display: flex;
width: fit-content;
margin-bottom: 10px;
}
.modal-target-card,
.operation-panel {
margin-top: 12px;
}
.modal-body textarea {
display: block;
}
.modal-body .props-list {
max-height: min(42vh, 330px);
}
.loading-mask {
position: absolute;
z-index: 20;
inset: 0;
display: flex;
min-height: 100vh;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
background: rgba(245, 246, 248, 0.96);
color: var(--primary-dark);
font-weight: 900;
}
.loader {
width: 34px;
height: 34px;
border: 4px solid rgba(24, 184, 159, 0.18);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.82s linear infinite;
}
.toast {
position: fixed;
z-index: 40;
left: 50%;
bottom: calc(24px + env(safe-area-inset-bottom));
max-width: min(330px, calc(100vw - 40px));
transform: translateX(-50%);
border-radius: 8px;
padding: 10px 14px;
background: rgba(29, 34, 40, 0.92);
color: #fff;
font-size: 13px;
font-weight: 800;
text-align: center;
}
[dir="rtl"] .back-button svg {
transform: rotate(180deg);
}
[dir="rtl"] .language-menu {
right: auto;
left: 0;
}
[dir="rtl"] .profile-copy,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] .custom-select-button,
[dir="rtl"] .custom-select-menu button,
[dir="rtl"] .prop-option,
[dir="rtl"] .action-item,
[dir="rtl"] .bd-leader-row {
text-align: right;
}
[dir="rtl"] .custom-select-button {
padding: 0 14px 0 12px;
}
[dir="rtl"] .action-item-arrow {
transform: rotate(180deg);
}
[dir="rtl"] .bd-leader-time {
text-align: left;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@media (min-width: 720px) {
.manager-center {
min-height: 760px;
}
}