@@ -153,8 +153,228 @@
|
||||
--shadow-cta-active:
|
||||
0 1px 2px rgba(0, 47, 167, .18);
|
||||
--shadow-floating: 0 8px 28px rgba(17, 19, 24, .06);
|
||||
|
||||
/* 容器四角准星:用 mask 着色,让它跟随当前主题的边框层级。 */
|
||||
--corner-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 21'%3E%3Cpath fill='%23000' d='M10.5 4C10.5 7.31371 7.81371 10 4.5 10H0.5V11H4.5C7.81371 11 10.5 13.6863 10.5 17V21H11.5V17C11.5 13.6863 14.1863 11 17.5 11H21.5V10H17.5C14.1863 10 11.5 7.31371 11.5 4V0H10.5V4Z'/%3E%3C/svg%3E");
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================
|
||||
Dark theme · 同一套语义 token 反色
|
||||
由 html[data-theme="dark"] 驱动(见 theme.ts / settings 外观)
|
||||
============================================================ */
|
||||
html[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
|
||||
--background-base: #0f1115;
|
||||
--background-lighter: #14171c;
|
||||
--surface: #181b21;
|
||||
--surface-raised: #1e2229;
|
||||
|
||||
--border-faint: #2a2f38;
|
||||
--border-muted: #323843;
|
||||
--border-loud: #3c4450;
|
||||
|
||||
/* 主文字走近白;accent-white 保持真白(按钮/反色字) */
|
||||
--accent-black: #e8eaed;
|
||||
--accent-white: #ffffff;
|
||||
--nav-active: #e8eaed;
|
||||
|
||||
--forest-bg: rgba(66, 195, 102, .14);
|
||||
--forest-bd: rgba(66, 195, 102, .32);
|
||||
--crimson-bg: rgba(235, 52, 36, .14);
|
||||
--crimson-bd: rgba(235, 52, 36, .32);
|
||||
--honey-bg: rgba(236, 183, 48, .14);
|
||||
--honey-bd: rgba(236, 183, 48, .32);
|
||||
|
||||
/* 克莱因在深底上略提亮,避免发灰 */
|
||||
--klein: #3d6bff;
|
||||
--klein-hover: #5a82ff;
|
||||
--heat: var(--klein);
|
||||
--heat-hover: var(--klein-hover);
|
||||
|
||||
--black: var(--accent-black);
|
||||
--text: var(--accent-black);
|
||||
--heat-90: rgba(61, 107, 255, .90);
|
||||
--heat-40: rgba(61, 107, 255, .40);
|
||||
--heat-20: rgba(61, 107, 255, .20);
|
||||
--heat-16: rgba(61, 107, 255, .16);
|
||||
--heat-12: rgba(61, 107, 255, .14);
|
||||
--heat-8: rgba(61, 107, 255, .10);
|
||||
--heat-4: rgba(61, 107, 255, .06);
|
||||
|
||||
/* black-alpha → 白透明阶梯(同语义:轻微叠色) */
|
||||
--black-alpha-1: rgba(255, 255, 255, .015);
|
||||
--black-alpha-2: rgba(255, 255, 255, .025);
|
||||
--black-alpha-3: rgba(255, 255, 255, .035);
|
||||
--black-alpha-4: rgba(255, 255, 255, .05);
|
||||
--black-alpha-5: rgba(255, 255, 255, .06);
|
||||
--black-alpha-6: rgba(255, 255, 255, .07);
|
||||
--black-alpha-7: rgba(255, 255, 255, .08);
|
||||
--black-alpha-8: rgba(255, 255, 255, .09);
|
||||
--black-alpha-10: rgba(255, 255, 255, .11);
|
||||
--black-alpha-12: rgba(255, 255, 255, .13);
|
||||
--black-alpha-16: rgba(255, 255, 255, .16);
|
||||
--black-alpha-20: rgba(255, 255, 255, .20);
|
||||
--black-alpha-24: rgba(255, 255, 255, .24);
|
||||
--black-alpha-32: rgba(255, 255, 255, .32);
|
||||
--black-alpha-40: rgba(255, 255, 255, .40);
|
||||
--black-alpha-48: rgba(255, 255, 255, .48);
|
||||
--black-alpha-56: rgba(255, 255, 255, .56);
|
||||
--black-alpha-64: rgba(255, 255, 255, .64);
|
||||
--black-alpha-72: rgba(255, 255, 255, .72);
|
||||
--black-alpha-88: rgba(255, 255, 255, .88);
|
||||
|
||||
--shadow-cta:
|
||||
0 1px 2px rgba(61, 107, 255, .22),
|
||||
0 6px 16px rgba(61, 107, 255, .28);
|
||||
--shadow-cta-hover:
|
||||
0 2px 4px rgba(61, 107, 255, .26),
|
||||
0 10px 22px rgba(61, 107, 255, .34);
|
||||
--shadow-cta-active:
|
||||
0 1px 2px rgba(61, 107, 255, .22);
|
||||
--shadow-floating: 0 8px 28px rgba(0, 0, 0, .45);
|
||||
|
||||
/* styles.css legacy aliases */
|
||||
--bg: var(--background-base);
|
||||
--bg-soft: var(--background-lighter);
|
||||
--card: var(--surface);
|
||||
--border: var(--border-faint);
|
||||
--border-soft: var(--border-muted);
|
||||
--ink: var(--accent-black);
|
||||
--ink-2: rgba(232, 234, 237, .72);
|
||||
--ink-3: rgba(232, 234, 237, .52);
|
||||
--ink-4: rgba(232, 234, 237, .32);
|
||||
--orange: var(--klein);
|
||||
--orange-soft: var(--heat-40);
|
||||
--orange-tint: var(--heat-8);
|
||||
--orange-hover: var(--klein-hover);
|
||||
--green: #6dd88a;
|
||||
--green-bg: var(--forest-bg);
|
||||
--green-bd: var(--forest-bd);
|
||||
--red: #ff6b5c;
|
||||
--red-bg: var(--crimson-bg);
|
||||
--red-bd: var(--crimson-bd);
|
||||
}
|
||||
|
||||
/* 壳层硬编码浅色 → dark 对齐 */
|
||||
html[data-theme="dark"] aside.sidebar {
|
||||
/* 盖过 aside.sidebar 本地 --klein:#002fa7,否则子菜单 active 仍是深蓝 */
|
||||
--klein: #3d6bff;
|
||||
--klein-hover: #5a82ff;
|
||||
--st-black: #e8eaed;
|
||||
border-right-color: rgba(255, 255, 255, 0.08);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-submenu {
|
||||
border-left-color: rgba(61, 107, 255, 0.32);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-subitem {
|
||||
color: rgba(232, 234, 237, 0.78);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-subitem:hover {
|
||||
color: #a8bbff;
|
||||
background: rgba(61, 107, 255, 0.14);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-subitem.active {
|
||||
color: #c5d2ff;
|
||||
background: rgba(61, 107, 255, 0.2);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-subitem.active::before {
|
||||
box-shadow: 0 0 0 4px rgba(61, 107, 255, 0.22);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-subitem .pill-mini {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #a8bbff;
|
||||
}
|
||||
html[data-theme="dark"] .sidebar-head {
|
||||
border-bottom-color: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
html[data-theme="dark"] .brand-logo {
|
||||
mix-blend-mode: normal;
|
||||
filter: brightness(0) invert(1);
|
||||
opacity: 0.92;
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-item {
|
||||
color: rgba(232, 234, 237, 0.78);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-item .nav-desc,
|
||||
html[data-theme="dark"] aside.sidebar .nav-item .nav-sub {
|
||||
color: rgba(232, 234, 237, 0.42);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-item.active,
|
||||
html[data-theme="dark"] aside.sidebar .nav-item[aria-current="page"] {
|
||||
color: #e8eaed;
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .org-switcher,
|
||||
html[data-theme="dark"] aside.sidebar .org-switcher span {
|
||||
color: rgba(232, 234, 237, 0.78);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .org-switcher svg {
|
||||
color: rgba(232, 234, 237, 0.48);
|
||||
}
|
||||
html[data-theme="dark"] .user .av {
|
||||
background: #3a4050;
|
||||
color: #fff;
|
||||
}
|
||||
html[data-theme="dark"] .grid-bg {
|
||||
background-image:
|
||||
linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
|
||||
}
|
||||
html[data-theme="dark"] .topbar {
|
||||
border-bottom-color: rgba(255, 255, 255, 0.08);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
html[data-theme="dark"] .top-search {
|
||||
border-color: #3a4050;
|
||||
color: #e8eaed;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
html[data-theme="dark"] .top-search:hover {
|
||||
border-color: #4a5160;
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
html[data-theme="dark"] .queue-chip,
|
||||
html[data-theme="dark"] .balance-chip {
|
||||
border-color: var(--border-faint);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] aside.sidebar .nav-item .nav-chevron {
|
||||
color: rgba(232, 234, 237, 0.42);
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-item:hover {
|
||||
color: #e8eaed;
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .liquid-shape {
|
||||
/* 深色下不用纯黑胶囊,改用品牌蓝选中态 */
|
||||
color: #3d6bff;
|
||||
filter: drop-shadow(0 5px 10px rgba(61, 107, 255, 0.28));
|
||||
}
|
||||
html[data-theme="dark"] aside.sidebar .nav-liquid,
|
||||
html[data-theme="dark"] aside.sidebar .nav-capsule {
|
||||
background: rgba(61, 107, 255, 0.12);
|
||||
box-shadow: 0 0 0 4px rgba(61, 107, 255, 0.12);
|
||||
}
|
||||
html[data-theme="dark"] .main,
|
||||
html[data-theme="dark"] .content,
|
||||
html[data-theme="dark"] .page {
|
||||
background: var(--background-base);
|
||||
color: var(--accent-black);
|
||||
}
|
||||
html[data-theme="dark"] .icon-btn {
|
||||
background: var(--surface);
|
||||
border-color: var(--border-faint);
|
||||
color: var(--black-alpha-64);
|
||||
}
|
||||
html[data-theme="dark"] .icon-btn:hover {
|
||||
background: var(--background-lighter);
|
||||
color: var(--accent-black);
|
||||
border-color: var(--border-loud);
|
||||
}
|
||||
|
||||
|
||||
::selection { background: var(--heat-20); color: var(--heat); }
|
||||
|
||||
html, body {
|
||||
@@ -268,7 +488,7 @@ aside.sidebar {
|
||||
min-height: var(--topbar-height);
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
background: var(--surface);
|
||||
border-bottom: 1px solid rgba(27, 32, 40, 0.07);
|
||||
}
|
||||
.brand { display: flex; align-items: center; justify-content: center; min-width: 0; color: var(--accent-black); }
|
||||
@@ -607,7 +827,7 @@ aside.sidebar .nav-subitem .pill-mini {
|
||||
padding: 0 5px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
background: var(--surface);
|
||||
color: var(--klein);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
@@ -619,7 +839,7 @@ aside.sidebar .liquid-indicator {
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
width: 132px;
|
||||
width: 152px;
|
||||
height: 76px;
|
||||
pointer-events: none;
|
||||
transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
@@ -635,6 +855,7 @@ aside.sidebar .liquid-shape {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: visible;
|
||||
color: #101012;
|
||||
filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.14));
|
||||
transform-origin: left center;
|
||||
}
|
||||
@@ -651,7 +872,7 @@ aside.sidebar .indicator-content {
|
||||
top: 0;
|
||||
left: 33px;
|
||||
height: 76px;
|
||||
width: 94px;
|
||||
width: 112px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
@@ -776,7 +997,7 @@ body.sidebar-collapsed .user::after { display: none; }
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
position: relative;
|
||||
background: #fff;
|
||||
background: var(--surface);
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow-x: clip;
|
||||
@@ -827,7 +1048,7 @@ body.sidebar-collapsed .user::after { display: none; }
|
||||
display: flex; align-items: center; gap: 16px;
|
||||
padding: 0 clamp(36px, 3.2vw, 68px);
|
||||
border-bottom: 1px solid rgba(27, 32, 40, 0.08);
|
||||
background: #fff;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 4px 16px rgba(20, 27, 38, 0.035);
|
||||
position: sticky; top: 0; z-index: var(--z-topbar);
|
||||
align-self: start;
|
||||
@@ -1168,8 +1389,11 @@ body.sidebar-collapsed .user::after { display: none; }
|
||||
.with-corners .corner-tr, .with-corners .corner-bl {
|
||||
content: ''; position: absolute;
|
||||
width: 14px; height: 14px;
|
||||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 21' fill='%23e8e8e8'%3E%3Cpath d='M10.5 4C10.5 7.31371 7.81371 10 4.5 10H0.5V11H4.5C7.81371 11 10.5 13.6863 10.5 17V21H11.5V17C11.5 13.6863 14.1863 11 17.5 11H21.5V10H17.5C14.1863 10 11.5 7.31371 11.5 4V0H10.5V4Z'/%3E%3C/svg%3E") no-repeat center;
|
||||
background-size: contain;
|
||||
background-color: var(--border-muted);
|
||||
-webkit-mask: var(--corner-mark) center / contain no-repeat;
|
||||
mask: var(--corner-mark) center / contain no-repeat;
|
||||
color: transparent;
|
||||
font-size: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.card-hard.with-corners::before { top: -7px; left: -7px; }
|
||||
@@ -2269,6 +2493,11 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
color: var(--black-alpha-56);
|
||||
font-weight: 500;
|
||||
}
|
||||
html[data-theme="dark"] .placeholder .ph-frame {
|
||||
background: var(--surface-raised);
|
||||
border-color: var(--border-faint);
|
||||
color: var(--black-alpha-56);
|
||||
}
|
||||
.placeholder.has-mock-media {
|
||||
background-color: var(--background-lighter);
|
||||
background-image: var(--mock-media-url);
|
||||
@@ -2599,6 +2828,7 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
margin: 6px 4px;
|
||||
}
|
||||
|
||||
|
||||
/* ─── Modal ─── */
|
||||
.modal-bg {
|
||||
position: fixed; inset: 0;
|
||||
@@ -2632,24 +2862,27 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 14px; height: 14px;
|
||||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 21' fill='%23e8e8e8'%3E%3Cpath d='M10.5 4C10.5 7.31371 7.81371 10 4.5 10H0.5V11H4.5C7.81371 11 10.5 13.6863 10.5 17V21H11.5V17C11.5 13.6863 14.1863 11 17.5 11H21.5V10H17.5C14.1863 10 11.5 7.31371 11.5 4V0H10.5V4Z'/%3E%3C/svg%3E") no-repeat center;
|
||||
background-size: contain;
|
||||
background-color: var(--border-muted);
|
||||
-webkit-mask: var(--corner-mark) center / contain no-repeat;
|
||||
mask: var(--corner-mark) center / contain no-repeat;
|
||||
pointer-events: none;
|
||||
color: var(--black-alpha-48);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 13px; line-height: 1;
|
||||
z-index: 1;
|
||||
}
|
||||
.modal::before { top: -7px; left: -7px; }
|
||||
.modal::after { bottom: -7px; right: -7px; }
|
||||
.modal::before { top: 0; left: 0; }
|
||||
.modal::after { bottom: 0; right: 0; }
|
||||
.modal .corner-tr, .modal .corner-bl {
|
||||
position: absolute;
|
||||
width: 14px; height: 14px;
|
||||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 21' fill='%23e8e8e8'%3E%3Cpath d='M10.5 4C10.5 7.31371 7.81371 10 4.5 10H0.5V11H4.5C7.81371 11 10.5 13.6863 10.5 17V21H11.5V17C11.5 13.6863 14.1863 11 17.5 11H21.5V10H17.5C14.1863 10 11.5 7.31371 11.5 4V0H10.5V4Z'/%3E%3C/svg%3E") no-repeat center;
|
||||
background-size: contain;
|
||||
background-color: var(--border-muted);
|
||||
-webkit-mask: var(--corner-mark) center / contain no-repeat;
|
||||
mask: var(--corner-mark) center / contain no-repeat;
|
||||
color: transparent;
|
||||
font-size: 0;
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
.modal .corner-tr { top: -7px; right: -7px; }
|
||||
.modal .corner-bl { bottom: -7px; left: -7px; }
|
||||
.modal .corner-tr { top: 0; right: 0; }
|
||||
.modal .corner-bl { bottom: 0; left: 0; }
|
||||
.modal-h {
|
||||
padding: 22px 24px 16px;
|
||||
border-bottom: 1px solid var(--border-faint);
|
||||
@@ -2716,6 +2949,12 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
font-family: inherit;
|
||||
}
|
||||
.card-del-btn svg { width: 14px; height: 14px; }
|
||||
html[data-theme="dark"] .card-del-btn {
|
||||
background: var(--surface-raised);
|
||||
border-color: var(--border-faint);
|
||||
color: var(--black-alpha-56);
|
||||
box-shadow: none;
|
||||
}
|
||||
.product-card:hover .card-del-btn,
|
||||
.asset-card:hover .card-del-btn,
|
||||
.project-card:hover .card-del-btn,
|
||||
@@ -2804,10 +3043,18 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
position: fixed; top: 0; left: 0; bottom: 0;
|
||||
width: var(--sidebar-width);
|
||||
z-index: 1200;
|
||||
/* 手机上的侧栏是抽屉,必须遮住页面内容,不能沿用桌面端的半透明背景。 */
|
||||
background: var(--surface-raised);
|
||||
border-right-color: var(--border-faint);
|
||||
transform: translateX(-100%);
|
||||
transition: transform .28s cubic-bezier(.32, .72, 0, 1);
|
||||
box-shadow: 0 0 40px rgba(0, 0, 0, .18);
|
||||
}
|
||||
/* 暗色桌面侧栏可保留轻透层;窄屏抽屉必须是实底,避免透出页面内容。 */
|
||||
html[data-theme="dark"] aside.sidebar {
|
||||
background: var(--surface-raised);
|
||||
border-right-color: var(--border-faint);
|
||||
}
|
||||
/* 抽屉里收窄态不适用,强制展开宽度,避免 body.sidebar-collapsed 把抽屉压成 96px */
|
||||
body.sidebar-collapsed aside.sidebar { width: var(--sidebar-width); }
|
||||
aside.sidebar.mobile-open { transform: translateX(0); }
|
||||
@@ -2822,8 +3069,22 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
}
|
||||
.mobile-nav-btn span { display: block; width: 16px; height: 1.6px; background: var(--accent-black); border-radius: 2px; }
|
||||
.mobile-nav-backdrop { position: fixed; inset: 0; z-index: 1150; background: rgba(21, 20, 15, .42); }
|
||||
/* 顶栏给汉堡键让出左侧空间 */
|
||||
.topbar { padding-left: 64px; }
|
||||
/* 顶栏给汉堡键让出左侧空间;搜索与余额压缩为单行工具,避免中文在窄窗逐字折行。 */
|
||||
.topbar { padding: 0 16px 0 64px; gap: 8px; }
|
||||
.topbar .right { gap: 8px; flex: 0 0 auto; }
|
||||
.top-search {
|
||||
width: 40px;
|
||||
min-width: 40px;
|
||||
padding: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
.top-search span { display: none; }
|
||||
.balance-chip {
|
||||
flex: 0 0 auto;
|
||||
padding: 0 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.balance-chip-label { display: none; }
|
||||
.stats { grid-template-columns: repeat(2, 1fr); }
|
||||
.stat:nth-child(2) { border-right: 0; }
|
||||
.stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border-faint); }
|
||||
@@ -2899,7 +3160,7 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
left: 0;
|
||||
width: 252px;
|
||||
padding: 11px 13px 14px;
|
||||
background: #fff;
|
||||
background: var(--surface);
|
||||
color: var(--accent-black);
|
||||
border: 1px solid rgba(34, 42, 54, 0.10);
|
||||
border-radius: var(--r-md);
|
||||
@@ -2921,7 +3182,7 @@ table.t tbody tr:hover { background: var(--black-alpha-4); }
|
||||
position: absolute;
|
||||
top: -5px; left: 14px;
|
||||
width: 10px; height: 10px;
|
||||
background: #fff;
|
||||
background: var(--surface);
|
||||
border-left: 1px solid rgba(34, 42, 54, 0.10);
|
||||
border-top: 1px solid rgba(34, 42, 54, 0.10);
|
||||
transform: rotate(45deg);
|
||||
|
||||
Reference in New Issue
Block a user