Files
gongxue-base/apps/taro/src/pages/platform-admin/platform.css

1090 lines
18 KiB
CSS

.platform-page {
min-height: 100vh;
padding: 28px;
background: var(--tiku-page);
color: var(--tiku-text);
}
.platform-shell {
display: flex;
flex-direction: column;
gap: 26px;
}
.platform-header {
position: relative;
overflow: hidden;
padding: 30px;
border-radius: 30px;
background: linear-gradient(135deg, #0f172a, #1152d4 62%, #38bdf8);
box-shadow: var(--tiku-shadow-blue);
}
.platform-header::after {
content: "";
position: absolute;
right: -64px;
bottom: -84px;
width: 240px;
height: 240px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.14);
}
.platform-kicker,
.platform-title,
.platform-subtitle {
position: relative;
z-index: 1;
display: block;
}
.platform-kicker {
color: rgba(255, 255, 255, 0.78);
font-size: 22px;
font-weight: 850;
}
.platform-title {
margin-top: 8px;
color: #fff;
font-size: 38px;
font-weight: 920;
line-height: 1.2;
}
.platform-subtitle {
margin-top: 10px;
color: rgba(255, 255, 255, 0.82);
font-size: 24px;
line-height: 1.45;
}
.platform-tabs,
.platform-actions {
display: flex;
gap: 12px;
overflow-x: auto;
padding-bottom: 6px;
}
.platform-shell > .platform-actions,
.platform-shell > .platform-tabs,
.platform-section > .platform-actions:first-child {
padding: 14px;
border: 1px solid var(--tiku-border);
border-radius: 24px;
background: #fff;
box-shadow: var(--tiku-shadow);
}
.platform-button,
.platform-mini-button {
border: 1px solid var(--tiku-border);
background: #fff;
color: var(--tiku-primary);
font-weight: 820;
}
.platform-button {
min-width: 132px;
height: 62px;
border-radius: 16px;
font-size: 23px;
line-height: 62px;
}
.platform-mini-button {
min-width: 116px;
height: 54px;
border-radius: 14px;
font-size: 21px;
line-height: 54px;
}
.platform-button.primary {
border-color: var(--tiku-primary);
background: linear-gradient(135deg, var(--tiku-primary), #2563eb);
color: #fff;
box-shadow: 0 10px 20px rgba(17, 82, 212, 0.16);
}
.platform-button.active,
.platform-mini-button.active {
border-color: var(--tiku-primary);
background: var(--tiku-primary-soft);
color: var(--tiku-primary);
}
.platform-mini-button.danger {
border-color: #fecdd3;
background: #fff1f2;
color: #be123c;
}
.platform-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.platform-grid.three {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.platform-metric {
min-height: 112px;
padding: 20px;
border: 1px solid var(--tiku-border);
border-radius: 24px;
background: #fff;
box-shadow: var(--tiku-shadow);
}
.platform-metric-label {
display: block;
color: var(--tiku-muted);
font-size: 21px;
}
.platform-metric-value {
display: block;
margin-top: 12px;
color: var(--tiku-text);
font-size: 31px;
font-weight: 900;
line-height: 1.2;
}
.platform-section {
margin-top: 4px;
padding: 24px;
border: 1px solid var(--tiku-border);
border-radius: 28px;
background: rgba(255, 255, 255, 0.72);
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.platform-section-title {
display: block;
margin-bottom: 14px;
color: var(--tiku-text);
font-size: 29px;
font-weight: 900;
}
.platform-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.platform-row {
padding: 20px;
border: 1px solid var(--tiku-border);
border-radius: 22px;
background: #fff;
box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}
.platform-row:nth-child(4n + 1) {
border-color: #dbeafe;
}
.platform-row:nth-child(4n + 2) {
border-color: #dcfce7;
}
.platform-row:nth-child(4n + 3) {
border-color: #fae8ff;
}
.platform-module-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.platform-module-card {
position: relative;
overflow: hidden;
min-height: 170px;
padding: 22px;
border-radius: 28px;
background: linear-gradient(135deg, #1152d4, #38bdf8);
box-shadow: 0 12px 24px rgba(17, 82, 212, 0.14);
}
.platform-module-card:nth-child(2) { background: linear-gradient(135deg, #10b981, #2dd4bf); }
.platform-module-card:nth-child(3) { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.platform-module-card:nth-child(4) { background: linear-gradient(135deg, #f97316, #fbbf24); }
.platform-module-card::after {
content: "";
position: absolute;
right: -28px;
bottom: -44px;
width: 130px;
height: 130px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.16);
}
.platform-module-card .platform-row-main,
.platform-module-card .platform-row-meta,
.platform-module-label {
position: relative;
z-index: 1;
}
.platform-module-card .platform-row-main {
margin-top: 30px;
color: #fff;
font-size: 30px;
font-weight: 950;
}
.platform-module-card .platform-row-meta {
color: rgba(255, 255, 255, 0.82);
}
.platform-module-label {
display: block;
color: rgba(255, 255, 255, 0.82);
font-size: 20px;
font-weight: 850;
}
.platform-row-main {
display: block;
color: var(--tiku-text);
font-size: 26px;
font-weight: 820;
line-height: 1.35;
}
.platform-row-meta {
display: block;
margin-top: 8px;
color: var(--tiku-muted);
font-size: 21px;
line-height: 1.45;
}
.platform-empty {
padding: 32px 22px;
border: 1px dashed var(--tiku-border-strong);
border-radius: 22px;
background: #fff;
color: var(--tiku-muted);
font-size: 23px;
line-height: 1.45;
}
.platform-input {
width: 100%;
height: 66px;
padding: 0 18px;
border: 1px solid var(--tiku-border);
border-radius: 16px;
background: #fff;
color: var(--tiku-text);
font-size: 24px;
}
.platform-form {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
margin-bottom: 14px;
padding: 16px;
border: 1px solid var(--tiku-border);
border-radius: 22px;
background: #f8fafc;
}
.platform-form.compact {
margin-top: 12px;
}
.platform-field {
min-width: 0;
}
.platform-field.wide {
grid-column: 1 / -1;
}
.platform-field-label {
display: block;
margin-bottom: 8px;
color: var(--tiku-muted);
font-size: 20px;
font-weight: 760;
}
.platform-row-actions {
display: flex;
gap: 10px;
margin-top: 14px;
flex-wrap: wrap;
overflow-x: visible;
}
.platform-permission-panel {
display: flex;
flex-direction: column;
gap: 16px;
margin: 8px 0 16px;
padding: 18px;
border: 1px solid var(--tiku-border);
border-radius: 22px;
background: #fff;
}
.platform-permission-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.platform-permission-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.platform-chip-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.platform-chip-list.compact {
margin-top: 14px;
}
.platform-chip {
display: inline-flex;
align-items: center;
max-width: 100%;
min-height: 48px;
padding: 0 14px;
border: 1px solid var(--tiku-border);
border-radius: 999px;
background: #f8fafc;
color: #334155;
font-size: 20px;
font-weight: 720;
line-height: 1.25;
}
.platform-chip.active {
border-color: var(--tiku-primary);
background: var(--tiku-primary-soft);
color: var(--tiku-primary);
}
.platform-chip.readonly {
border-color: #bfdbfe;
background: #eff6ff;
color: #1d4ed8;
}
.platform-error {
display: block;
margin-top: 12px;
color: #be123c;
font-size: 22px;
}
@media (min-width: 980px) {
.platform-page {
max-width: 1240px;
margin: 0 auto;
padding: 38px;
}
.platform-shell {
gap: 30px;
}
.platform-header {
padding: 38px;
}
.platform-title {
font-size: 44px;
}
.platform-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.platform-grid.three {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.platform-module-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.platform-section .platform-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.platform-permission-panel {
padding: 22px;
}
}
@media (max-width: 520px) {
.platform-page {
padding: 20px;
}
.platform-grid,
.platform-grid.three,
.platform-module-grid,
.platform-form {
grid-template-columns: minmax(0, 1fr);
}
.platform-title {
font-size: 34px;
}
.platform-section {
padding: 18px;
border-radius: 24px;
}
.platform-actions,
.platform-tabs,
.platform-row-actions,
.platform-permission-header {
flex-wrap: wrap;
overflow-x: visible;
}
.platform-button,
.platform-mini-button {
min-width: 0;
flex: 1 1 138px;
}
}
/* Legacy platform density pass: old web admin card/table rhythm. */
.platform-page {
background:
linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
#f4f6f9;
background-size: 40px 40px;
}
.platform-shell {
gap: 18px;
}
.platform-header {
border: 1px solid #f1f5f9;
border-radius: 16px;
background: #fff;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.platform-header::after {
display: none;
}
.platform-kicker {
color: #2563eb;
font-size: 14px;
font-weight: 900;
}
.platform-title {
color: #111827;
font-size: 30px;
font-weight: 900;
}
.platform-subtitle {
color: #64748b;
font-size: 15px;
}
.platform-section,
.platform-metric,
.platform-row,
.platform-form,
.platform-permission-panel {
border-color: #f1f5f9;
border-radius: 16px;
background: #fff;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.platform-section {
padding: 18px;
}
.platform-section-title {
display: flex;
align-items: center;
gap: 9px;
margin-bottom: 12px;
font-size: 20px;
}
.platform-section-title::before {
content: "";
width: 5px;
height: 18px;
border-radius: 999px;
background: #2563eb;
}
.platform-shell > .platform-actions,
.platform-shell > .platform-tabs,
.platform-section > .platform-actions:first-child {
padding: 10px;
border-color: #f1f5f9;
border-radius: 16px;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.platform-actions,
.platform-tabs,
.platform-row-actions {
gap: 8px;
}
.platform-button,
.platform-mini-button {
border-color: #e5e7eb;
border-radius: 10px;
color: #475569;
box-shadow: none;
}
.platform-button {
min-width: 98px;
height: 42px;
font-size: 14px;
line-height: 42px;
}
.platform-mini-button {
min-width: 86px;
height: 36px;
font-size: 13px;
line-height: 36px;
}
.platform-button.primary,
.platform-button.active,
.platform-mini-button.active {
border-color: #1e293b;
background: #1e293b;
color: #fff;
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.platform-mini-button.danger {
border-color: #fecaca;
background: #fff1f2;
color: #dc2626;
}
.platform-metric {
min-height: 88px;
padding: 14px;
}
.platform-metric-label,
.platform-field-label {
color: #6b7280;
font-size: 13px;
font-weight: 760;
}
.platform-metric-value {
margin-top: 6px;
font-size: 24px;
font-weight: 900;
}
.platform-row {
padding: 14px 16px;
border-radius: 14px;
}
.platform-row:nth-child(4n + 1),
.platform-row:nth-child(4n + 2),
.platform-row:nth-child(4n + 3) {
border-color: #f1f5f9;
}
.platform-row-main {
font-size: 17px;
font-weight: 850;
}
.platform-row-meta {
margin-top: 5px;
color: #64748b;
font-size: 13px;
line-height: 1.45;
}
.platform-input {
height: 44px;
padding: 0 12px;
border-color: #e5e7eb;
border-radius: 10px;
font-size: 14px;
}
.platform-form {
gap: 10px;
padding: 12px;
background: #f8fafc;
}
.platform-empty {
padding: 24px;
border-color: #e5e7eb;
border-radius: 16px;
color: #94a3b8;
font-size: 14px;
}
.platform-chip {
min-height: 34px;
padding: 0 10px;
border-color: #e5e7eb;
border-radius: 8px;
font-size: 13px;
}
.platform-chip.active,
.platform-chip.readonly {
border-color: #bfdbfe;
background: #eff6ff;
color: #1d4ed8;
}
.platform-error {
font-size: 14px;
}
.platform-actions .platform-input {
flex: 0 1 280px;
}
.platform-form .platform-button {
align-self: center;
}
.platform-row-actions {
padding-top: 8px;
border-top: 1px solid #f8fafc;
}
.platform-permission-panel {
gap: 12px;
padding: 12px;
background: #f8fafc;
}
.platform-permission-header {
padding-bottom: 10px;
border-bottom: 1px solid #e5e7eb;
}
.platform-permission-group {
gap: 6px;
}
.platform-chip-list {
gap: 7px;
}
.platform-section .platform-form + .platform-permission-panel {
margin-top: 12px;
}
.platform-row .platform-chip-list.compact {
padding-top: 10px;
}
.platform-row .platform-chip.readonly {
max-width: 260px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.platform-metric:nth-child(4n + 1),
.platform-row:nth-child(4n + 1) {
border-left: 4px solid #2563eb;
}
.platform-metric:nth-child(4n + 2),
.platform-row:nth-child(4n + 2) {
border-left: 4px solid #10b981;
}
.platform-metric:nth-child(4n + 3),
.platform-row:nth-child(4n + 3) {
border-left: 4px solid #f59e0b;
}
.platform-metric:nth-child(4n),
.platform-row:nth-child(4n) {
border-left: 4px solid #64748b;
}
@media (min-width: 980px) {
.platform-page {
padding: 24px;
}
.platform-shell {
gap: 16px;
}
.platform-header {
padding: 22px;
}
.platform-title {
font-size: 30px;
}
.platform-form {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.platform-field.wide {
grid-column: span 2;
}
}
/* Complex legacy platform pages: denser tenant, billing, and permission surfaces. */
.platform-section .platform-section {
margin-top: 14px;
padding: 14px;
border-style: dashed;
background: #fbfdff;
box-shadow: none;
}
.platform-section .platform-section .platform-section-title {
font-size: 16px;
}
.platform-list {
gap: 8px;
}
.platform-section > .platform-list.compact,
.platform-list.compact {
gap: 0;
border: 1px solid #f1f5f9;
border-radius: 16px;
background: #fff;
overflow: hidden;
}
.platform-list.compact .platform-row {
border-width: 0 0 1px;
border-radius: 0;
box-shadow: none;
}
.platform-list.compact .platform-row:last-child {
border-bottom: 0;
}
.platform-section > .platform-form + .platform-form,
.platform-section > .platform-form + .platform-actions,
.platform-section > .platform-list + .platform-list,
.platform-section > .platform-grid + .platform-list {
margin-top: 12px;
}
.platform-row {
position: relative;
}
.platform-row::before {
content: "";
position: absolute;
top: 14px;
bottom: 14px;
left: 0;
width: 4px;
border-radius: 0 999px 999px 0;
background: #2563eb;
}
.platform-row:nth-child(4n + 2)::before {
background: #10b981;
}
.platform-row:nth-child(4n + 3)::before {
background: #f59e0b;
}
.platform-row:nth-child(4n)::before {
background: #64748b;
}
.platform-row.active,
.platform-row.selected {
border-color: #bfdbfe;
background: #eff6ff;
}
.platform-form.compact {
align-items: end;
margin-top: 0;
margin-bottom: 12px;
}
.platform-form.compact .platform-input {
height: 40px;
font-size: 13px;
}
.platform-form.compact .platform-field-label {
margin-bottom: 5px;
font-size: 12px;
}
.platform-actions {
align-items: center;
}
.platform-row-actions {
align-items: center;
}
.platform-permission-panel {
border-style: dashed;
}
.platform-permission-header .platform-row-main {
font-size: 15px;
}
.platform-chip-list.compact,
.platform-row .platform-chip-list.compact {
margin-top: 10px;
padding-top: 8px;
border-top: 1px solid #f1f5f9;
}
.platform-empty {
box-shadow: none;
}
.platform-grid + .platform-grid,
.platform-grid + .platform-form,
.platform-form + .platform-grid {
margin-top: 12px;
}
.platform-metric {
border-left: 4px solid #2563eb;
}
.platform-metric:nth-child(4n + 2) {
border-left-color: #10b981;
}
.platform-metric:nth-child(4n + 3) {
border-left-color: #f59e0b;
}
.platform-metric:nth-child(4n) {
border-left-color: #64748b;
}
@media (min-width: 980px) {
.platform-form.compact {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.platform-section .platform-section {
padding: 16px;
}
}
/* Legacy platform admin deep pages: billing, tenant detail, grants, staff. */
.platform-page {
--platform-table-line: #eef2f7;
}
.platform-section {
overflow: hidden;
}
.platform-section + .platform-section {
margin-top: 0;
}
.platform-form {
align-items: end;
border-color: #eef2f7;
background:
linear-gradient(to right, rgba(15, 23, 42, 0.018) 1px, transparent 1px),
#fbfdff;
background-size: 32px 32px;
}
.platform-form.compact + .platform-actions,
.platform-actions + .platform-form.compact,
.platform-actions + .platform-list,
.platform-grid + .platform-section {
margin-top: 10px;
}
.platform-actions {
flex-wrap: wrap;
overflow-x: visible;
padding-bottom: 0;
}
.platform-actions .platform-input {
height: 38px;
font-size: 13px;
}
.platform-section > .platform-actions:first-child .platform-section-title {
margin-bottom: 0;
}
.platform-list {
gap: 8px;
}
.platform-row {
border-left: 0;
}
.platform-row:hover {
border-color: #dbeafe;
background: #fbfdff;
}
.platform-row-actions {
margin-top: 10px;
padding-top: 9px;
}
.platform-row-actions .platform-input {
max-width: 280px;
}
.platform-empty {
margin-top: 8px;
padding: 16px;
border-style: dashed;
background: #fbfdff;
}
.platform-error {
padding: 10px 12px;
border-radius: 10px;
background: #fff1f2;
}
.platform-chip,
.platform-chip.readonly {
min-height: 28px;
border-radius: 7px;
font-size: 12px;
}
.platform-chip.active,
.platform-button.active,
.platform-mini-button.active {
border-color: #1e293b;
background: #1e293b;
color: #fff;
}
.platform-permission-panel {
border-color: #eef2f7;
border-radius: 12px;
}
.platform-permission-header {
gap: 8px;
}
.platform-permission-group {
padding: 8px;
border: 1px solid #eef2f7;
border-radius: 10px;
background: #fff;
}
.platform-chip-list.compact,
.platform-row .platform-chip-list.compact {
gap: 6px;
}
.platform-section .platform-section {
border-color: #e5e7eb;
border-radius: 12px;
}
.platform-section .platform-section + .platform-section {
margin-top: 10px;
}
.platform-section .platform-section .platform-list {
gap: 6px;
}
.platform-section .platform-section .platform-row {
padding: 10px 12px 10px 16px;
box-shadow: none;
}
.platform-metric {
min-width: 0;
}
@media (min-width: 980px) {
.platform-section {
padding: 16px;
}
.platform-form {
gap: 8px;
padding: 10px;
}
.platform-module-grid {
gap: 10px;
}
.platform-module-card {
min-height: 112px;
padding: 16px;
border-radius: 14px;
}
.platform-module-card .platform-row-main {
margin-top: 16px;
font-size: 20px;
}
}