Files
monkey-ai-web/src/styles/prototype.css
T

1476 lines
34 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Values measured from the approved prototype. Component defaults stay in ConfigProvider. */
body[data-ui-scope='admin'] {
--surface-bg-base: #f4f6f9;
--surface-card: #fff;
--surface-sidebar: #fff;
--surface-header: #fff;
--text-primary: #263247;
--text-secondary: #7e8998;
--border-subtle: #e9edf2;
--app-header-height: 72px;
--app-announcement-height: 35px;
--sidebar-width: 216px;
--sidebar-width-collapsed: 64px;
background: var(--surface-bg-base);
font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
color: var(--text-primary);
}
html.dark body[data-ui-scope='admin'] {
--surface-bg-base: #11151c;
--surface-card: #1b212b;
--surface-sidebar: #1b212b;
--surface-header: #1b212b;
--text-primary: #e6ebf3;
--text-secondary: #8e9aaa;
--border-subtle: #2b333f;
background: var(--surface-bg-base);
}
body[data-ui-scope='admin'] .ant-layout-header header {
background: var(--surface-header);
border-bottom: 1px solid var(--border-subtle);
box-shadow: none;
}
body[data-ui-scope='admin'] .ant-layout-header header > .absolute {
display: none;
}
/* Top bar: measured from prototype .topbar / .brand / .top-actions / .account-dropdown. */
body[data-ui-scope='admin'] {
--hd-panel-bg: #fff;
--hd-panel-border: #e5e9ef;
--hd-panel-shadow: 0 10px 36px #21334a24;
--hd-summary-line: #edf0f4;
--hd-menu-text: #263247;
--hd-menu-muted: #7a8697;
--hd-icon-user-bg: #edf2ff;
--hd-icon-user: #5279ca;
--hd-icon-key-bg: #fff2d9;
--hd-icon-key: #b9791f;
--hd-icon-logout-bg: #fdeced;
--hd-icon-logout: #d95c62;
}
html.dark body[data-ui-scope='admin'] {
--hd-panel-bg: #1b2531;
--hd-panel-border: #344252;
--hd-panel-shadow: 0 10px 36px #0005;
--hd-summary-line: #344252;
--hd-menu-text: #e7edf5;
--hd-menu-muted: #a2afc0;
--hd-icon-user-bg: #283853;
--hd-icon-user: #9bb9f0;
--hd-icon-key-bg: #45351e;
--hd-icon-key: #f0bb66;
--hd-icon-logout-bg: #452930;
--hd-icon-logout: #f3969b;
}
.ui-header-logo {
gap: 9px;
flex-shrink: 0;
}
.ui-header-logo-mark {
width: 32px;
height: 32px;
flex-shrink: 0;
}
.ui-header-brand-name {
display: block;
overflow: hidden;
color: var(--text-primary);
font-size: 20px;
font-weight: 700;
line-height: 27px;
letter-spacing: 1px;
text-overflow: ellipsis;
white-space: nowrap;
}
.ui-header-actions {
gap: 7px;
}
.ui-header-actions .ant-btn {
align-items: center;
justify-content: center;
}
.ui-header-actions .ant-btn:not(.hidden) {
display: inline-flex;
}
/* Lucide SVGs must not leave a text-baseline gap inside Ant button icons. */
.ui-header-actions .ant-btn > .ant-btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 0;
}
.ui-header-actions .ant-btn > .ant-btn-icon > svg,
.ui-header-actions .ant-btn > svg {
display: block;
flex-shrink: 0;
}
.ui-header-actions .ui-header-icon-action.ant-btn {
width: 34px;
height: 34px;
padding: 0;
}
.ui-header-actions .ui-header-account.ant-btn {
align-items: center;
}
.ui-header-download.ant-btn {
height: 34px;
padding-inline: 12px;
gap: 8px;
font-weight: 500;
}
.ui-header-actions-divider.ant-divider-vertical {
margin-inline: 8px;
}
.ui-header-account.ant-btn {
height: 46px;
gap: 9px;
padding: 3px 7px;
flex-shrink: 0;
}
.ui-account-avatar.ant-avatar {
flex-shrink: 0;
border-radius: 8px;
}
.ui-header-account-name {
max-width: 160px;
overflow: hidden;
font-size: 14px;
text-overflow: ellipsis;
white-space: nowrap;
}
.ui-header-account-chevron {
flex-shrink: 0;
color: var(--text-secondary);
transition: transform 0.2s;
}
.ui-header-account-chevron.is-open {
transform: rotate(180deg);
}
.ui-account-panel {
width: 248px;
padding: 8px;
background: var(--hd-panel-bg);
border: 1px solid var(--hd-panel-border);
border-radius: 12px;
box-shadow: var(--hd-panel-shadow);
}
.ui-account-summary {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 6px;
padding: 12px 12px 16px;
border-bottom: 1px solid var(--hd-summary-line);
}
.ui-account-summary > div {
min-width: 0;
}
.ui-account-summary strong,
.ui-account-summary span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ui-account-summary strong {
color: var(--hd-menu-text);
font-size: 14px;
font-weight: 600;
line-height: 22px;
}
.ui-account-summary span {
margin-top: 3px;
color: var(--hd-menu-muted);
font-size: 12px;
}
.ui-account-dropdown.ant-dropdown .ant-dropdown-menu {
padding: 0;
background: transparent;
box-shadow: none;
}
.ui-account-dropdown.ant-dropdown .ant-dropdown-menu-item {
padding: 10px 12px;
border-radius: 8px;
}
.ui-account-menu-label {
display: flex;
align-items: center;
gap: 12px;
color: var(--hd-menu-text);
font-size: 14px;
line-height: 1.5;
}
.ui-account-menu-label small {
display: block;
margin-top: 2px;
color: var(--hd-menu-muted);
font-size: 12px;
}
.ui-account-menu-icon {
display: grid;
flex-shrink: 0;
place-items: center;
width: 34px;
height: 34px;
border-radius: 9px;
}
.ui-account-menu-icon-user {
background: var(--hd-icon-user-bg);
color: var(--hd-icon-user);
}
.ui-account-menu-icon-key {
background: var(--hd-icon-key-bg);
color: var(--hd-icon-key);
}
.ui-account-menu-icon-logout {
background: var(--hd-icon-logout-bg);
color: var(--hd-icon-logout);
}
@media (prefers-reduced-motion: reduce) {
.ui-header-account-chevron {
transition: none;
}
}
.ui-header-navigation {
align-self: stretch;
gap: 0;
}
@media (min-width: 768px) {
.ui-topbar {
--header-inline-padding: 26px;
padding-inline: var(--header-inline-padding);
}
.ui-topbar .ui-header-brand {
min-width: 166px;
flex-shrink: 0;
}
.ui-header-logo-mark {
width: 39px;
height: 39px;
}
.ui-topbar .ui-header-navigation {
margin-inline: 42px;
}
}
@media (min-width: 768px) and (max-width: 1250px) {
.ui-topbar {
--header-inline-padding: 20px;
}
.ui-topbar .ui-header-navigation {
margin-inline: 18px;
}
.ui-topbar .ui-header-navigation .ui-header-nav-item {
padding-inline: 17px;
}
.ui-header-download.ant-btn {
width: 34px;
padding-inline: 0;
}
.ui-header-download.ant-btn > span:not(.ant-btn-icon) {
display: none;
}
}
@media (min-width: 768px) and (max-width: 900px) {
.ui-topbar .ui-header-brand {
min-width: 140px;
}
.ui-header-brand-name {
font-size: 17px;
}
.ui-topbar .ui-header-navigation {
margin-inline: 8px;
}
.ui-topbar .ui-header-navigation .ui-header-nav-item {
padding-inline: 12px;
}
.ui-header-actions {
gap: 0;
}
}
@media (max-width: 900px) {
.ui-header-account-name {
display: none;
}
}
@media (max-width: 767px) {
/* Keeps the previous 8px inset: this header keeps more mobile actions than the prototype. */
.ui-topbar {
padding-inline: 8px;
}
.ui-header-actions {
gap: 0;
}
.ui-header-actions-divider {
display: none;
}
}
.ui-header-navigation .ui-header-nav-item {
height: 100%;
padding: 0 24px;
color: var(--text-primary);
background: transparent;
}
@media (min-width: 768px) {
.ui-topbar .ui-header-brand {
/* Align the first underline with the sidebar content's breadcrumb. */
flex: 0 0
calc(
var(--sidebar-width, 216px) + var(--uc-page-pad-x, 36px) -
var(--header-inline-padding) - 16px
);
min-width: 0;
}
.ui-topbar .ui-header-navigation {
margin-inline-start: 0;
}
}
.ui-header-navigation .ui-header-nav-item::after {
content: '';
position: absolute;
inset-inline: 16px;
bottom: 0;
border-bottom: 2px solid transparent;
transition: border-color 160ms ease;
}
.ui-header-navigation .ui-header-nav-item.nav-item-active {
color: var(--ui-color-primary);
}
.ui-header-navigation .ui-header-nav-item:hover::after,
.ui-header-navigation .ui-header-nav-item:focus-visible::after,
.ui-header-navigation .ui-header-nav-item.nav-item-active::after {
border-bottom-color: var(--ui-color-primary);
}
/* 客户端授权页保留透出背景的顶栏;登录 / 注册 / 找回密码统一使用标准登录顶栏。 */
body[data-ui-scope='admin'] .auth-layout-header,
body[data-ui-scope='admin'] .auth-layout-header header {
background: transparent;
border-bottom: 0;
}
.auth-login-page {
--auth-login-muted: color-mix(in srgb, var(--ui-color-text-1) 80%, black);
padding-top: calc(var(--app-header-height, 72px) + 24px);
padding-bottom: 24px;
}
.auth-login-page .login-card-float {
animation: none;
}
.auth-login-page .login-card-top-accent,
.auth-login-page .login-card-top-reflection {
display: none;
}
.auth-login-page .login-glass-card,
.auth-login-page .login-glass-card:hover {
padding-top: 28px;
padding-bottom: 28px;
transform: none;
transition: none;
}
/* 字段节奏统一 24px:与必填字段预留的一行报错高度一致,报错出现时布局不跳动 */
.auth-login-page .ant-form-item {
margin-bottom: 24px;
}
/* Zero margin avoids Ant Form's error compensation; control height reserves one error line. */
.auth-login-page .auth-login-required-field {
margin-bottom: 0;
padding-bottom: 0;
}
.auth-login-page .auth-login-required-field .ant-form-item-control {
min-height: calc(var(--auth-control-height) + 24px);
}
.auth-login-page .ant-form-item-label {
padding-bottom: 6px;
}
.auth-login-page .ant-form-item-label > label {
height: auto;
font-size: 12px;
line-height: 18px;
}
.auth-login-fields {
display: flex;
flex-direction: column;
gap: 12px;
}
.auth-login-fields .ant-form-item {
/* 与 gap 12px 叠加后字段节奏同为 24px,和其他认证表单一致 */
margin-bottom: 12px;
}
.auth-login-page .auth-login-actions {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding-top: 4px;
}
.auth-login-page .auth-login-forgot {
height: auto;
min-height: 24px;
padding: 0 8px;
font-size: 12px;
transition: color 160ms ease;
}
.auth-login-page .auth-card-subtitle,
.auth-login-page .auth-login-remember,
.auth-login-page .auth-login-admin-help,
.auth-login-page .auth-login-forgot,
.auth-login-page .auth-login-forgot:not(:disabled):hover,
.auth-login-page .auth-login-forgot:not(:disabled):active {
color: var(--auth-login-muted);
}
.auth-login-page .auth-login-remember,
.auth-login-page .auth-login-remember:hover,
.auth-login-page .auth-login-forgot,
.auth-login-page .auth-login-forgot:not(:disabled):hover,
.auth-login-page .auth-login-forgot:not(:disabled):active {
background: transparent;
}
.auth-login-page .auth-login-forgot:not(:disabled):hover {
color: color-mix(in srgb, var(--ui-color-text-1) 60%, black);
}
.auth-login-page .auth-login-forgot:not(:disabled):active {
color: color-mix(in srgb, var(--ui-color-text-1) 50%, black);
}
.auth-login-page .auth-login-register {
margin-top: 16px;
line-height: 20px;
}
/*
* 认证页统一视觉:/login、/org/login、/org/:slug/login、/register、/org/register、
* /reset、/user/reset 及其弹窗(两步验证、微信验证码)。
* 控件统一 36px 高、8px 圆角;间距统一 4 的倍数;去掉光晕 / 漂移光斑 / 星标等装饰。
*/
.auth-login-page,
.auth-login-modal {
--auth-control-height: 36px;
}
.auth-login-page .login-card-glow,
.auth-login-page .login-card-halo,
.auth-login-page .login-glass-aurora,
.auth-login-page .auth-card-logo-halo,
.auth-login-page .auth-card-sparkle {
display: none;
}
.auth-login-page .auth-card-header {
margin-bottom: 24px;
}
.auth-login-page .auth-card-logo {
margin-bottom: 12px;
}
.auth-login-page .auth-card-logo-box {
box-shadow: none;
border: 1px solid var(--ui-color-border-light);
}
.auth-login-page .auth-card-title {
font-size: 20px;
line-height: 28px;
font-weight: 650;
}
.auth-login-page .auth-card-subtitle {
margin-top: 2px;
font-size: 12px;
line-height: 18px;
}
/* 输入框 / 密码框 / 下拉(含 AutoComplete)统一 36px */
.auth-login-page .ant-input-affix-wrapper,
.auth-login-page input.ant-input-outlined,
.auth-login-modal .ant-input-affix-wrapper,
.auth-login-modal input.ant-input-outlined {
height: var(--auth-control-height);
padding-block: 0;
border-radius: var(--ui-border-radius-medium);
}
.auth-login-page .ant-select-single,
.auth-login-page .ant-select-single .ant-select-selector {
height: var(--auth-control-height);
border-radius: var(--ui-border-radius-medium);
}
/* 主按钮 / 整行按钮 / 弹窗底部按钮统一 36px */
.auth-login-page .ant-btn-block,
.auth-login-modal .ant-btn-block,
.auth-login-modal .ant-modal-footer .ant-btn {
height: var(--auth-control-height);
border-radius: var(--ui-border-radius-medium);
}
.auth-login-page .auth-login-submit {
gap: 6px;
}
.auth-login-page .auth-oauth-button {
font-weight: 500;
}
.auth-login-page .auth-oauth-icon {
display: inline-flex;
width: 16px;
height: 16px;
align-items: center;
justify-content: center;
}
.auth-login-page .auth-oauth-icon svg {
max-width: 16px;
max-height: 16px;
}
/* 第三方登录列表:8px 行距,分隔线上下对称 */
.auth-login-page .auth-option-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.auth-login-page .auth-option-list .auth-divider {
margin-block: 4px;
}
.auth-divider {
display: flex;
align-items: center;
gap: 12px;
margin-block: 16px;
font-size: 12px;
line-height: 18px;
color: var(--ui-color-text-2);
}
.auth-divider-line {
flex: 1;
height: 1px;
background: var(--ui-color-border-light);
}
.auth-login-fields .auth-divider {
margin-block: 4px 0;
}
.auth-login-page .auth-login-agreement {
margin-top: 16px;
}
.auth-login-page .auth-login-banner {
margin-bottom: 16px;
}
.auth-login-page .auth-login-security {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-top: 12px;
font-size: 12px;
line-height: 18px;
color: var(--ui-color-text-2);
}
.auth-modal-title-icon {
display: inline-flex;
width: 36px;
height: 36px;
flex-shrink: 0;
align-items: center;
justify-content: center;
border-radius: var(--ui-border-radius-medium);
background: var(--ui-color-highlight-bg);
color: var(--ui-color-focus-border);
}
body[data-ui-scope='admin'] [data-page-background] {
display: none;
}
.org-center [data-active='true'] {
background: #fff3df;
color: #a95d07;
}
html.dark .org-center [data-active='true'] {
background: #382b1b;
color: #f2ad41;
}
.org-center [data-active='true'] > div {
background: transparent;
color: inherit;
}
.org-center [data-active='true'] > .absolute {
display: none;
}
body[data-ui-scope='admin'] .marquee-bar {
height: var(--app-announcement-height, 35px);
background: #fff7e8 !important;
color: #93622a;
border-bottom: 1px solid #f4e8d3;
box-shadow: none !important;
animation: none !important;
}
html.dark body[data-ui-scope='admin'] .marquee-bar {
background: #292319 !important;
color: #d9b078;
border-color: #3a3020;
}
.marquee-bar > .flex {
height: calc(var(--app-announcement-height, 35px) - 1px);
padding-inline: 24px;
}
.marquee-bar .marquee-icon {
width: 20px;
height: 20px;
}
.marquee-bar .marquee-text,
.marquee-bar .marquee-measure,
.marquee-bar .flex-shrink-0 span,
.marquee-bar svg {
color: inherit;
font-size: 12px;
text-shadow: none;
}
.marquee-bar .marquee-text,
.marquee-bar .marquee-measure {
font-weight: 400;
letter-spacing: normal;
}
.marquee-bar .marquee-close {
color: inherit;
}
.marquee-bar .marquee-mask-left,
.marquee-bar .marquee-mask-right,
.marquee-bar > .absolute {
display: none;
}
body[data-ui-scope='admin'] .ant-layout {
background: transparent;
}
.org-page-header h1 {
margin: 0 0 7px;
font-size: 28px;
line-height: 1.4;
font-weight: 650;
letter-spacing: -0.6px;
}
.org-page-header p {
margin: 0;
font-size: 13px;
line-height: 1.7;
color: var(--text-secondary);
}
.org-panel {
margin-bottom: 20px;
border-color: var(--border-subtle);
border-radius: 10px;
box-shadow: none;
}
.org-panel > .ant-card-body > div:last-child {
padding: 0;
}
.org-panel > .ant-card-body > div:first-child:not(:last-child) {
padding: 0 0 20px;
border: 0;
}
.org-panel .ant-table-thead > tr > th {
--center-table-head-bg: var(--ui-color-fill-0);
color: var(--text-secondary);
font-size: 12px;
font-weight: 500;
}
.org-panel .ant-table {
font-size: 13px;
}
.org-panel .ant-table-pagination {
margin-bottom: 0;
flex-wrap: wrap;
row-gap: 8px;
}
.org-modal .ant-modal-body,
.org-sidesheet .ant-drawer-body {
overflow: auto;
max-height: calc(100dvh - 180px);
}
.ant-modal {
max-width: calc(100vw - 32px);
}
.ant-modal:not(.viewport-preview-modal) .ant-modal-body {
max-height: calc(100dvh - 200px);
overflow-x: hidden;
overflow-y: auto;
}
.viewport-preview-modal.ant-modal {
max-width: 100vw;
}
.viewport-preview-modal .ant-modal-body {
max-height: none;
max-width: none;
overflow-x: visible;
overflow-y: visible;
}
.uc-dashboard {
/* 在线原型 .dashboard-hero 实测(1920×1000 / 393×851):渐变、网格线、底部渐隐与插画 */
--uc-hero-h: 315px;
--uc-hero-bg:
radial-gradient(ellipse at 85% 30%, #f8d79b85, transparent 55%),
linear-gradient(108deg, #f8fbff 12%, #fff6e6 100%);
--uc-hero-lines:
linear-gradient(
118deg,
transparent 0 53%,
#fff9 53% 54%,
transparent 54% 71%,
#d5a55620 71% 72%,
transparent 72%
),
linear-gradient(0deg, #ffffff90 1px, transparent 1px),
linear-gradient(90deg, #ffffff90 1px, transparent 1px),
repeating-linear-gradient(
155deg,
transparent 0 110px,
#d3a55312 111px 112px,
transparent 113px 180px
);
--uc-hero-lines-opacity: 1;
--uc-hero-art-opacity: 0.82;
--uc-hero-art-filter: none;
padding: var(--uc-page-pad-top, 30px) var(--uc-page-pad-x, 36px)
var(--uc-page-pad-bottom, 36px);
isolation: isolate;
background: var(--surface-bg-base);
}
html.dark .uc-dashboard {
--uc-hero-bg:
radial-gradient(ellipse at 85% 30%, #a374334d, transparent 55%),
linear-gradient(108deg, #171e29 12%, #2d281f 100%);
--uc-hero-lines:
linear-gradient(
118deg,
transparent 0 53%,
#e2b66918 53% 54%,
transparent 54% 71%,
#e2b66918 71% 72%,
transparent 72%
),
linear-gradient(0deg, #a5b2c217 1px, transparent 1px),
linear-gradient(90deg, #a5b2c217 1px, transparent 1px),
repeating-linear-gradient(
155deg,
transparent 0 110px,
#d3a55310 111px 112px,
transparent 113px 180px
);
--uc-hero-lines-opacity: 0.46;
--uc-hero-art-opacity: 0.64;
--uc-hero-art-filter: brightness(0.83) saturate(0.8);
}
.uc-dashboard-hero {
position: absolute;
inset: 0 0 auto;
height: var(--uc-hero-h);
overflow: hidden;
z-index: -1;
pointer-events: none;
background: var(--uc-hero-bg);
}
.uc-dashboard-hero::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
opacity: var(--uc-hero-lines-opacity);
background-image: var(--uc-hero-lines);
background-size:
100% 100%,
44px 44px,
44px 44px,
100% 100%;
mask-image: linear-gradient(90deg, #0002, #000);
}
.uc-dashboard-hero::after {
content: '';
position: absolute;
inset: auto 0 0;
height: 60px;
background: linear-gradient(transparent, var(--surface-bg-base));
}
.ui-dashboard-art {
position: absolute;
width: 630px;
height: 310px;
right: 4%;
top: 17px;
opacity: var(--uc-hero-art-opacity);
filter: var(--uc-hero-art-filter);
pointer-events: none;
}
.ui-dashboard-breadcrumb {
margin: 0 0 24px;
font-size: 12px;
line-height: 18px;
}
.ui-user-center-breadcrumb .ant-breadcrumb-separator,
.org-workbench-breadcrumb .ant-breadcrumb-separator {
margin-inline: 10px;
}
.user-center .user-center-service-page {
/* 组件自带 88px 顶部让位,外层 -mt-[64px] 抵消后剩 --uc-page-pad-top */
padding-top: calc(64px + var(--uc-page-pad-top, 30px));
padding-inline: var(--uc-page-pad-x, 36px);
padding-bottom: var(--uc-page-pad-bottom, 36px);
}
.user-center .user-center-service-page > .relative {
max-width: none;
}
.user-center .ui-recharge-content {
max-width: none;
}
.uc-dashboard .ui-page-actions {
z-index: 2;
}
.uc-dashboard .ui-page-actions .ant-select {
width: 92px;
}
.ui-dashboard-chart-heading {
display: none;
}
/* 看板会员权益(原型无此状态):统一规范——语义底色/边框/文字,无渐变、光晕与位移动效 */
.uc-member-benefits {
margin-bottom: 20px;
}
.uc-member-benefits-head {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
}
.uc-member-benefits-head h2 {
margin: 0;
color: var(--text-primary);
font-size: 15px;
font-weight: 600;
}
.uc-member-benefits-meta {
display: inline-flex;
align-items: center;
gap: 4px;
margin-left: auto;
color: var(--text-secondary);
font-size: 12px;
}
.uc-member-benefits-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.uc-member-benefit {
display: flex;
flex-direction: column;
gap: 8px;
padding: 16px;
border: 1px solid var(--border-subtle);
border-radius: 10px;
background: var(--surface-card);
}
.uc-member-benefit-label {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--text-secondary);
font-size: 12px;
}
.uc-member-benefit-label svg {
color: var(--ui-color-primary);
}
.uc-member-benefit strong {
color: var(--text-primary);
font-size: 20px;
font-weight: 700;
line-height: 28px;
}
.uc-member-benefit small {
color: var(--text-secondary);
font-size: 12px;
}
@media (max-width: 1024px) {
.uc-member-benefits-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.ui-page-heading {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
margin-bottom: 28px;
}
.ui-page-heading h1 {
margin: 0 0 7px;
color: var(--text-primary);
font-size: 28px;
font-weight: 650;
line-height: 1.4;
letter-spacing: -0.6px;
}
.ui-page-heading p {
margin: 0;
color: var(--text-secondary);
font-size: 13px;
}
.ui-page-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.ui-dashboard-metrics {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 18px;
}
.ui-metric.ant-card {
border: 1px solid rgba(255, 255, 255, 0.82);
border-radius: 10px;
background: linear-gradient(
125deg,
rgba(255, 255, 255, 0.64),
rgba(246, 250, 253, 0.34)
);
backdrop-filter: blur(20px) saturate(135%);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.9),
0 5px 18px rgba(71, 88, 108, 0.06);
}
html.dark .ui-metric.ant-card {
border-color: rgba(192, 211, 231, 0.19);
background: linear-gradient(
125deg,
rgba(48, 60, 76, 0.65),
rgba(28, 37, 48, 0.42)
);
box-shadow:
inset 0 1px 0 rgba(230, 241, 255, 0.08),
0 5px 18px rgba(0, 0, 0, 0.1);
}
.ui-metric .ant-card-body {
display: flex;
gap: 18px;
align-items: center;
min-height: 110px;
padding: 17px 20px;
}
.ui-metric-icon {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
flex: none;
border-radius: 12px;
background: linear-gradient(145deg, #ecae45, #cd7b1e);
color: #fff;
box-shadow:
inset 0 1px 1px #fff8,
0 5px 12px #ca8d2526;
}
.ui-metric:nth-child(2) .ui-metric-icon {
background: linear-gradient(145deg, #56b7ab, #338b89);
}
.ui-metric:nth-child(3) .ui-metric-icon {
background: linear-gradient(145deg, #6a94d8, #426db5);
}
.ui-metric:nth-child(4) .ui-metric-icon {
background: linear-gradient(145deg, #dbab5c, #bd8b35);
}
.ui-metric:first-child .ui-metric-value {
color: #a8620c;
}
html.dark .ui-metric:first-child .ui-metric-value {
color: #f2bd6c;
}
.ui-metric-label {
color: var(--text-secondary);
font-size: 12px;
margin-bottom: 6px;
}
.ui-metric-value {
font-size: 27px;
font-weight: 650;
line-height: 1.3;
}
.ui-metric-trend {
width: 56px;
height: 24px;
}
.ui-dashboard-details {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
margin: 20px 0 0;
}
.ui-dashboard-details > .ant-card {
min-height: 189px;
}
.ui-dashboard-details .ant-card-body {
padding: 12px 22px 24px;
}
.ui-dashboard-details > .ant-card:first-child {
background:
radial-gradient(ellipse at 95% 0, #a7dedb4d, transparent 70%),
linear-gradient(110deg, #fbfffe, #edf8f5);
border-color: #cfe3dd;
}
.ui-dashboard-details > .ant-card:last-child {
background:
radial-gradient(ellipse at 95% 0, #bad0ec66, transparent 70%),
linear-gradient(110deg, #fcfdff, #eff3fa);
border-color: #dce6e9;
}
.ui-dashboard-details .ant-card-head {
background: transparent;
border-bottom: 0;
}
html.dark .ui-dashboard-details > .ant-card:first-child {
background:
radial-gradient(ellipse at 95% 0, #3a8b7730, transparent 70%), #1c2b2b;
border-color: #40645c66;
}
html.dark .ui-dashboard-details > .ant-card:last-child {
background:
radial-gradient(ellipse at 95% 0, #4975a233, transparent 70%), #202b3a;
border-color: #4b607a66;
}
.ui-dashboard-detail-items {
display: flex;
gap: 12px;
}
.ui-dashboard-detail-items > div {
flex: 1;
min-width: 0;
border: 1px solid var(--border-subtle);
border-radius: 8px;
padding: 12px;
}
.ui-detail-value {
font-size: 22px;
line-height: 1.3;
overflow-wrap: anywhere;
font-weight: 600;
}
.ui-dashboard-charts {
display: grid;
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
gap: 16px;
}
.ui-chart-title {
display: inline-flex;
align-items: center;
gap: 10px;
}
.ui-chart-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border: 1px solid var(--border-subtle);
border-radius: 8px;
color: #b98543;
background: var(--surface-card);
}
.ui-dashboard-charts .ant-card-head {
min-height: 64px;
background: transparent;
}
.ui-dashboard-charts > .ant-card:first-child {
background:
radial-gradient(at 100% 0, #f5dca844, transparent 50%),
linear-gradient(135deg, #fffdf9, #fffaf0);
border-color: #e7ddd0;
}
.ui-dashboard-charts > .ant-card:last-child {
background:
radial-gradient(at 100% 0, #d8e5ef66, transparent 50%),
linear-gradient(135deg, #fcfdff, #f2f7fa);
border-color: #dce6e9;
}
html.dark .ui-dashboard-charts > .ant-card {
background: var(--surface-card);
border-color: var(--border-subtle);
}
.ui-dashboard-charts > .ant-card,
.ui-dashboard-details > .ant-card {
min-width: 0;
}
.ui-chart-canvas {
height: 360px;
}
.ui-chat-stop {
display: flex;
justify-content: center;
padding: 8px;
}
.ui-spin-shell > .ant-spin-nested-loading {
width: 100%;
flex: 1;
min-width: 0;
}
/* 密钥管理(/key-management)样式已移至 src/pages/KeyManagement/key-management.css */
.ui-recharge-page .ant-btn {
box-shadow: none;
}
body[data-ui-scope='admin'] .app-card,
body[data-ui-scope='admin'] .theme-glass {
background: var(--surface-card) !important;
border: 1px solid var(--border-subtle) !important;
border-radius: 8px !important;
box-shadow: none !important;
backdrop-filter: none !important;
}
.ui-field-help {
color: var(--ui-color-text-2);
font-size: 12px;
}
.ui-required {
color: var(--ui-color-danger);
margin-right: 4px;
}
.ui-radio-vertical {
display: flex;
flex-direction: column;
gap: 8px;
}
.ui-card-footer {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border-subtle);
}
.ui-chat {
display: flex;
flex-direction: column;
min-height: 0;
}
.ui-chat-list {
flex: 1;
min-height: 0;
overflow: auto;
}
.ui-chat-message {
align-items: flex-start !important;
justify-content: flex-start !important;
gap: 12px;
padding: 16px !important;
}
.ui-chat-message-body {
flex: 1;
min-width: 0;
overflow-wrap: anywhere;
}
.ui-chat-input {
flex: none;
}
/* Source: approved prototype .ew-hero, .ew-stats and .ew-usage-grid (2026-11-03). */
.org-workbench {
display: flex;
flex-direction: column;
gap: var(--uc-layout-gap);
padding: var(--uc-page-pad-top, 30px) var(--uc-page-pad-x, 36px)
var(--uc-page-pad-bottom, 36px);
min-width: 0;
}
.org-workbench-breadcrumb {
/* The parent contributes an additional 18px row gap. */
margin: 0 0 6px;
font-size: 12px;
line-height: 18px;
}
.org-workbench .org-panel {
margin-bottom: 0;
}
.org-workbench-hero {
position: relative;
overflow: hidden;
min-height: 157px;
padding: 26px 28px;
border: 1px solid rgba(220, 183, 119, 0.25);
border-radius: 12px;
background:
radial-gradient(at 88% 0, rgba(215, 166, 83, 0.208), transparent 66%),
linear-gradient(115deg, #fcf7ee, #f0e4c8);
}
.org-workbench-hero-content {
position: relative;
z-index: 1;
}
.org-workbench-hero-heading {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.org-workbench-hero-greeting {
margin-bottom: 8px;
font-size: 13px;
color: #8c774f;
}
.org-workbench-hero h1 {
margin: 0 0 14px;
color: #473a24;
font-size: 26px;
line-height: 1.45;
font-weight: 650;
letter-spacing: -0.5px;
overflow-wrap: anywhere;
}
.org-workbench-hero-subtitle {
margin: 0;
color: #81673b;
font-size: 12px;
}
.org-workbench-hero .org-hero-actions {
gap: 8px;
flex-shrink: 0;
}
.org-workbench-hero .org-hero-actions .ant-btn {
background: rgba(255, 255, 255, 0.627);
border-color: rgba(201, 168, 106, 0.314);
color: #7b5c25;
}
.org-workbench-hero-art {
position: absolute;
width: 360px;
height: 300px;
right: 5%;
top: -70px;
transform: rotate(-20deg);
pointer-events: none;
}
.org-workbench-hero-art i {
position: absolute;
inset: 0;
border: 1px solid rgba(195, 164, 100, 0.333);
border-radius: 48px;
background: linear-gradient(
130deg,
rgba(255, 245, 216, 0.145),
rgba(184, 139, 38, 0.063)
);
transform: rotate(25deg);
}
.org-workbench-hero-art i:nth-child(2) {
inset: 40px;
transform: rotate(10deg);
}
.org-workbench-hero-art i:nth-child(3) {
inset: 80px;
transform: rotate(-5deg);
}
html.dark .org-workbench-hero {
background:
radial-gradient(at 85% 0, rgba(146, 115, 61, 0.267), transparent 65%),
linear-gradient(115deg, #24282d, #302b22);
border-color: #5e4d32;
}
html.dark .org-workbench-hero h1 {
color: #f2e7cf;
}
html.dark .org-workbench-hero-greeting {
color: #bdac8d;
}
html.dark .org-workbench-hero-subtitle {
color: #d2bd98;
}
html.dark .org-workbench-hero .org-hero-actions .ant-btn {
background: rgba(39, 48, 58, 0.69);
color: #e6cd9f;
border-color: rgba(153, 123, 74, 0.267);
}
.org-workbench-stats {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 18px;
}
.org-workbench-stats .org-stat-card {
padding: 20px;
min-width: 0;
min-height: 136px;
border-radius: 10px;
box-shadow: none;
}
.org-workbench-stats .org-stat-label {
gap: 8px;
margin-bottom: 12px;
}
.org-workbench-stats .org-stat-label > span:last-child {
font-size: 12px;
color: var(--text-secondary);
}
.org-workbench-stats .org-stat-icon {
width: auto;
height: auto;
background: transparent;
color: var(--ui-color-primary);
}
.org-workbench-stats .org-stat-value {
font:
600 29px/1.2 Bahnschrift,
'Segoe UI',
sans-serif;
color: var(--text-primary);
overflow-wrap: anywhere;
}
.org-workbench-stats .org-stat-hint {
margin-top: 8px;
color: var(--text-secondary);
font-size: 11px;
line-height: 1.7;
}
.org-workbench-middle {
display: grid;
grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
gap: 18px;
}
.org-workbench-middle .org-panel {
min-width: 0;
min-height: 266px;
}
.org-workbench-tokens {
position: relative;
overflow: hidden;
}
.org-workbench-tokens::after {
content: '';
position: absolute;
width: 170px;
height: 170px;
border: 24px double rgba(179, 142, 76, 0.07);
border-radius: 50%;
bottom: -80px;
right: -45px;
pointer-events: none;
}
.org-workbench-usage-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 18px;
}
.org-workbench-usage-block {
min-width: 0;
padding-left: 18px;
border-left: 1px solid var(--border-subtle);
}
.org-workbench-usage-block:first-child {
padding-left: 0;
border-left: 0;
}
.org-workbench-usage-block > div:first-child {
color: var(--text-secondary);
}
.org-workbench-usage-block > div:nth-child(2) {
margin: 12px 0;
font:
600 26px Bahnschrift,
'Segoe UI',
sans-serif;
}
.org-workbench-usage-block > div:last-child {
color: var(--text-secondary);
overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
.org-workbench-hero-heading {
flex-direction: column;
}
.org-workbench-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 767px) {
.org-workbench {
padding: var(--uc-page-pad-top) var(--uc-page-pad-x)
var(--uc-page-pad-bottom);
}
.org-workbench-hero {
padding: 22px 18px;
}
.org-workbench-hero h1 {
font-size: 22px;
}
.org-workbench-hero-art {
opacity: 0.5;
right: -50px;
}
.org-workbench-hero .org-hero-actions {
flex-shrink: 1;
justify-content: flex-start;
gap: 6px;
}
.org-workbench-hero .org-hero-actions .ant-btn {
padding-inline: 9px;
font-size: 12px;
}
.org-workbench-stats {
gap: 12px;
}
.org-workbench-stats .org-stat-card {
padding: 14px 12px;
}
.org-workbench-stats .org-stat-value {
font-size: 26px;
}
.org-workbench-middle {
grid-template-columns: minmax(0, 1fr);
}
.org-workbench-middle .org-panel {
min-height: 0;
}
.org-workbench-usage-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px 16px;
}
.org-workbench-usage-block:nth-child(3) {
padding-left: 0;
border-left: 0;
}
body[data-ui-scope='admin'] {
--app-header-height: 56px;
}
.org-page-header h1 {
font-size: 25px;
}
.org-panel > .ant-card-body {
padding: 20px 16px !important;
}
.uc-dashboard {
padding: 16px 16px;
}
.ui-dashboard-metrics {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.ui-metric .ant-card-body {
padding: 12px;
gap: 10px;
}
.ui-metric-icon {
width: 32px;
height: 32px;
}
.ui-metric-value {
font-size: 22px;
}
.ui-dashboard-details,
.ui-dashboard-charts {
grid-template-columns: minmax(0, 1fr);
}
.uc-dashboard .uc-page-header-extra {
width: 100%;
}
.uc-dashboard,
html.dark .uc-dashboard {
--uc-hero-h: 460px;
--uc-hero-art-opacity: 0.18;
}
.uc-dashboard .ui-page-actions {
width: 100%;
justify-content: flex-end;
gap: 6px;
}
.uc-dashboard .ui-page-actions .ant-btn {
padding-inline: 10px;
}
.ui-dashboard-art {
width: 330px;
height: 210px;
right: -65px;
top: 10px;
}
.ui-dashboard-detail-items {
flex-wrap: wrap;
}
.ui-dashboard-detail-items > div {
flex: 1 1 40%;
}
.ui-chart-canvas {
height: 300px;
}
}