/* ============================================================ Airshelf · Restraint V2.1 · Firecrawl-aligned · 纯净版 ============================================================ 严格遵循 DESIGN_SPEC_V2.md V2.1 · 不含任何 V1/V2 legacy alias ============================================================ */ /* ============ Web font · Alibaba PuHuiTi 3.0 ============ */ @font-face { font-family: 'Alibaba PuHuiTi'; font-weight: 400; font-style: normal; font-display: swap; src: local('Alibaba PuHuiTi 3.0'), local('AlibabaPuHuiTi-3-55-Regular'), local('Alibaba PuHuiTi 2.0'), local('AlibabaPuHuiTi-2-55-Regular'), url('/fonts/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2'); } @font-face { font-family: 'Alibaba PuHuiTi'; font-weight: 500; font-style: normal; font-display: swap; src: local('Alibaba PuHuiTi 3.0 Medium'), local('AlibabaPuHuiTi-3-65-Medium'), local('AlibabaPuHuiTi-2-65-Medium'), url('/fonts/AlibabaPuHuiTi-3-65-Medium.woff2') format('woff2'); } @font-face { font-family: 'Alibaba PuHuiTi'; font-weight: 600; font-style: normal; font-display: swap; src: local('AlibabaPuHuiTi-3-75-SemiBold'), local('AlibabaPuHuiTi-2-75-SemiBold'), url('/fonts/AlibabaPuHuiTi-3-75-SemiBold.woff2') format('woff2'); } @font-face { font-family: 'Alibaba PuHuiTi'; font-weight: 700; font-style: normal; font-display: swap; src: local('Alibaba PuHuiTi 3.0 Bold'), local('AlibabaPuHuiTi-3-85-Bold'), local('AlibabaPuHuiTi-2-85-Bold'), url('/fonts/AlibabaPuHuiTi-3-85-Bold.woff2') format('woff2'); } * { box-sizing: border-box; margin: 0; padding: 0; } :root { /* 比影擎 164px 略宽:我们子项带数量徽章,164 会挤 */ --sidebar-width: 192px; --topbar-height: 116px; /* 壳层:顶栏/侧栏收窄键 < 页面浮层。浮层必须盖住搜索/余额/铃铛 */ --z-topbar: 50; --z-overlay: 200; /* ===== Backgrounds (冷灰 · YZ 影擎) ===== */ --background-base: #f7f8fa; --background-lighter: #fbfbfc; --surface: #ffffff; --surface-raised: #ffffff; /* ===== Borders (冷灰 3 档,语义优先) ===== */ --border-faint: #eceef2; --border-muted: #e6e8ee; --border-loud: #e2e5eb; /* ===== Accent multi-color (5 色信号) ===== */ --accent-black: #17191d; --accent-white: #ffffff; --accent-amethyst: #9061ff; --accent-bluetron: #2a6dfb; --accent-crimson: #eb3424; --accent-forest: #42c366; --accent-honey: #ecb730; --nav-active: #111318; /* status 配套底/边 */ --forest-bg: rgba(66, 195, 102, .08); --forest-bd: rgba(66, 195, 102, .20); --crimson-bg: rgba(235, 52, 36, .08); --crimson-bd: rgba(235, 52, 36, .20); --honey-bg: rgba(236, 183, 48, .08); --honey-bd: rgba(236, 183, 48, .20); /* ===== Heat · 单 hue + 8 档 alpha · 克莱因蓝(对齐 YZ 主 CTA,别用浅紫以免像禁用) ===== */ --klein: #002fa7; --klein-hover: #002680; --heat: var(--klein); --heat-hover: var(--klein-hover); /* 影擎设计稿(omni-* 页面)沿用的两个前景名。设计稿里是 --black:#101012 / --text:#17181a, 与上面的 --accent-black 是同一个近黑 —— 这里做别名而不是新造色值(design.md §8)。 缺了它们,omni 页面的 background:var(--black) 会解析失败变透明(白字白底看不见)。 */ --black: var(--accent-black); --text: var(--accent-black); --heat-90: rgba(0, 47, 167, .90); --heat-40: rgba(0, 47, 167, .40); --heat-20: rgba(0, 47, 167, .20); --heat-16: rgba(0, 47, 167, .16); --heat-12: rgba(0, 47, 167, .12); --heat-8: rgba(0, 47, 167, .08); --heat-4: rgba(0, 47, 167, .04); /* ===== Black-alpha 阶梯 (20 档) ===== */ --black-alpha-1: rgba(0, 0, 0, .01); --black-alpha-2: rgba(0, 0, 0, .02); --black-alpha-3: rgba(0, 0, 0, .03); --black-alpha-4: rgba(0, 0, 0, .04); --black-alpha-5: rgba(0, 0, 0, .05); --black-alpha-6: rgba(0, 0, 0, .06); --black-alpha-7: rgba(0, 0, 0, .07); --black-alpha-8: rgba(0, 0, 0, .08); --black-alpha-10: rgba(0, 0, 0, .10); --black-alpha-12: rgba(0, 0, 0, .12); --black-alpha-16: rgba(0, 0, 0, .16); --black-alpha-20: rgba(0, 0, 0, .20); --black-alpha-24: rgba(0, 0, 0, .24); --black-alpha-32: rgba(38, 38, 38, .32); --black-alpha-40: rgba(38, 38, 38, .40); --black-alpha-48: rgba(38, 38, 38, .48); --black-alpha-56: rgba(38, 38, 38, .56); --black-alpha-64: rgba(38, 38, 38, .64); --black-alpha-72: rgba(38, 38, 38, .72); --black-alpha-88: rgba(38, 38, 38, .88); /* ===== Radius ===== */ --r-sm: 4px; --r-md: 8px; --r-pill: 999px; /* ===== Font · 关键:--font-mono 必须含 PuHuiTi 中文 fallback ===== */ /* Inter 不含 CJK 字形。 字体链按字符级 fallthrough,中文字符会找下一个候选 —— 必须包含 PuHuiTi。 */ --font-sans: 'Inter', 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; --font-inter: 'Inter', system-ui, sans-serif; --font-mono: 'Inter', 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; /* ===== Transition ===== */ --t-fast: 100ms ease; --t-base: 200ms ease; --t-slow: 300ms cubic-bezier(0.34, 1.56, 0.64, 1); /* ===== Shadows ===== */ --shadow-cta: 0 1px 2px rgba(0, 47, 167, .16), 0 6px 16px rgba(0, 47, 167, .24); --shadow-cta-hover: 0 2px 4px rgba(0, 47, 167, .20), 0 10px 22px rgba(0, 47, 167, .28); --shadow-cta-active: 0 1px 2px rgba(0, 47, 167, .18); --shadow-floating: 0 8px 28px rgba(17, 19, 24, .06); } ::selection { background: var(--heat-20); color: var(--heat); } html, body { background: var(--background-base); color: var(--accent-black); font-family: var(--font-sans); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } a { color: inherit; text-decoration: none; } button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; } input, textarea, select { font: inherit; color: inherit; outline: none; } img, svg, video { display: block; max-width: 100%; } /* ─── Icon system · Lucide-line only ─── */ :root { --icon-stroke: 1.5; --icon-xs: 12px; --icon-s: 14px; --icon-m: 16px; --icon-l: 20px; --icon-xl: 24px; } .ui-icon { width: var(--icon-m); height: var(--icon-m); flex: 0 0 auto; display: block; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; } .ui-icon * { vector-effect: non-scaling-stroke; } .ui-icon [stroke="none"] { fill: currentColor; stroke: none; } :where(nav a, .search-box, .balance-chip, .queue-chip, .icon-btn, .btn, .chip, .toolbar, .page-head, .toast, .modal, .drawer, .card-del-btn, .row-more, .gen-img-btn, .shortcut, .empty-state) svg:not(.corner):not(.quote-icon) { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; } :where(nav a, .search-box, .balance-chip, .queue-chip, .icon-btn, .btn, .chip, .toolbar, .page-head, .toast, .modal, .drawer, .card-del-btn, .row-more, .gen-img-btn, .shortcut, .empty-state) svg:not(.corner):not(.quote-icon) [fill="currentColor"] { fill: none; stroke: currentColor; } :where(nav a, .search-box, .balance-chip, .queue-chip, .icon-btn, .btn, .chip, .toolbar, .page-head, .toast, .modal, .drawer, .card-del-btn, .row-more, .gen-img-btn, .shortcut, .empty-state) svg:not(.corner):not(.quote-icon) [stroke="none"] { fill: currentColor; stroke: none; } .row-more svg circle { fill: currentColor !important; stroke: none !important; } .num, .tnum { font-variant-numeric: tabular-nums; } .mono { font-family: var(--font-mono); } .muted { color: var(--black-alpha-56); } .muted-2 { color: var(--black-alpha-48); } .spacer { flex: 1; } .hstack { display: flex; align-items: center; gap: 8px; } .hstack[hidden], .vstack[hidden] { display: none; } .vstack { display: flex; flex-direction: column; gap: 8px; } .divider { height: 1px; background: var(--border-faint); margin: 16px 0; } /* ─── App shell ─── */ .app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: var(--topbar-height) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns var(--t-base); } body.sidebar-collapsed .app { grid-template-columns: 96px minmax(0, 1fr); } /* ─── Sidebar ─── */ aside.sidebar { --klein: #002fa7; --st-black: #101012; grid-row: 1 / -1; padding: 0; border-right: 1px solid rgba(27, 32, 40, 0.08); background: rgba(28, 34, 43, 0.035); position: sticky; top: 0; align-self: start; height: 100vh; overflow: hidden; display: flex; flex-direction: column; transition: padding var(--t-base); } .sidebar-head { position: relative; z-index: 6; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; height: var(--topbar-height); min-height: var(--topbar-height); box-sizing: border-box; overflow: hidden; background: #fff; 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); } .brand-clip { display: block; width: 112px; height: 90px; overflow: hidden; transition: width var(--t-base), height var(--t-base); } .brand-logo { display: block; width: 112px; height: 90px; max-width: none; margin: 0; object-fit: contain; object-position: center; mix-blend-mode: multiply; } .brand-mark, .flame { width: 22px; height: 22px; color: var(--accent-black); } .brand-mark svg, .flame svg { width: 100%; height: 100%; } .brand .name { font-weight: 600; font-size: 18px; letter-spacing: -.012em; color: var(--accent-black); } .sidebar-toggle { position: fixed; top: 0; left: calc(var(--sidebar-width) - 28px); z-index: 70; width: 28px; height: 100vh; border: 0; border-radius: 0; background: transparent; color: var(--black-alpha-48); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 1; pointer-events: auto; transition: color var(--t-base), background var(--t-base); } .sidebar-toggle:hover, .sidebar-toggle:focus-visible { background: var(--black-alpha-4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: var(--accent-black); outline: none; } .sidebar-toggle-icon { display: block; opacity: 0; line-height: 1; transition: opacity var(--t-base); } .sidebar-toggle:hover .sidebar-toggle-icon, .sidebar-toggle:focus-visible .sidebar-toggle-icon { opacity: 1; } .sidebar-toggle-icon--expand { display: none; } /* sidebar search · Ctrl K Inter Bold 平铺 */ .search-box { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); color: var(--black-alpha-48); margin-bottom: 18px; cursor: text; transition: border-color var(--t-base); } .search-box:hover { border-color: var(--black-alpha-24); } .search-box:focus-within { border-color: var(--heat-40); box-shadow: inset 0 0 0 1px var(--heat-40); } .search-box svg { width: var(--icon-m); height: var(--icon-m); flex-shrink: 0; color: var(--ink-3); } .search-box input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--accent-black); padding: 0; } .search-box input::placeholder { color: var(--black-alpha-48); } .search-box .kbd { margin-left: auto; flex-shrink: 0; white-space: nowrap; font-family: var(--font-inter); font-weight: 700; font-size: 12px; color: var(--black-alpha-48); letter-spacing: .02em; } .nav-section { font-size: 12px; color: var(--black-alpha-48); padding: 16px 12px 8px; letter-spacing: .04em; font-weight: 500; /* 中文标签用 sans 字体,不用 mono + uppercase */ } aside.sidebar nav { display: flex; flex-direction: column; gap: 2px; } nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; color: var(--black-alpha-56); font-size: 14px; font-weight: 500; border-radius: var(--r-md); cursor: pointer; user-select: none; transition: background var(--t-base), color var(--t-base); } nav a:hover { background: var(--black-alpha-4); color: var(--accent-black); } nav a.active { background: var(--heat-12); color: var(--heat); } nav a svg { width: var(--icon-m); height: var(--icon-m); color: var(--ink-3); } nav a.active svg { color: var(--orange); } nav a .pill-mini { margin-left: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 2px 7px; background: var(--surface); color: var(--black-alpha-48); border: 1px solid var(--border-faint); border-radius: var(--r-pill); letter-spacing: .04em; } nav a.disabled { color: var(--black-alpha-32); cursor: not-allowed; } nav a.disabled:hover { background: transparent; color: var(--black-alpha-32); } .aside-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-faint); } .user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); cursor: pointer; transition: background var(--t-base); } .user:hover { background: var(--black-alpha-4); } .user .av { width: 26px; height: 26px; border-radius: 6px; background: var(--accent-black); color: var(--accent-white); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; overflow: hidden; } .user .av img { width: 100%; height: 100%; object-fit: cover; display: block; } .user .em { font-size: 13px; color: var(--accent-black); } /* ─── 影擎侧栏 · 从 UI 源码原样接入(液态胶囊 + nav-item) ─── */ .sidebar-toggle, .sidebar .search-box, .nav-section { display: none; } aside.sidebar .nav-panel { position: relative; height: calc(100vh - var(--topbar-height)); min-height: 0; padding-top: 14px; padding-bottom: 82px; overflow-x: hidden; overflow-y: auto; } aside.sidebar .nav-list { position: relative; z-index: 2; } aside.sidebar .nav-item { position: relative; z-index: 3; width: 100%; height: clamp(70px, 7.6vh, 84px); display: flex; align-items: center; padding: 0 10px 0 38px; color: #272a2f; background: transparent; cursor: pointer; text-align: left; transition: color 180ms ease, transform 180ms ease; } aside.sidebar .nav-item .nav-inner { width: 100%; display: grid; grid-template-columns: 28px max-content 17px; align-items: center; gap: 10px; white-space: nowrap; transition: opacity 140ms ease; } aside.sidebar .nav-item .nav-chevron { width: 17px; height: 17px; margin-left: 1px; color: rgba(39, 42, 47, 0.45); transform: translateX(-7px); transition: color 180ms ease, transform 220ms ease; } aside.sidebar .nav-item[aria-expanded="true"] .nav-chevron { color: var(--klein); transform: translateX(-7px) rotate(180deg); } aside.sidebar .nav-item:hover:not(.active) { color: var(--klein); transform: translateX(3px); } aside.sidebar .nav-item.active .nav-inner { opacity: 0; } aside.sidebar .nav-item svg { width: 23px; height: 23px; stroke-width: 1.8; } aside.sidebar .nav-label { font-size: 16px; font-weight: 600; } aside.sidebar .nav-submenu { display: grid; gap: 4px; max-height: 0; margin: 0 14px 0 28px; padding: 0 0 0 18px; overflow: hidden; border-left: 1px solid rgba(0, 47, 167, 0.16); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1), margin 280ms ease, padding 280ms ease, opacity 180ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1); } aside.sidebar .nav-submenu.expanded { /* 比影擎 184px 略高:我们多「账单库 / 垃圾桶」两行 */ max-height: 260px; margin: -8px 14px 10px 28px; padding: 8px 0 8px 18px; opacity: 1; transform: translateY(0); pointer-events: auto; } aside.sidebar .nav-subitem { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-radius: 10px; color: rgba(39, 42, 47, 0.62); background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; transition: color 180ms ease, background 180ms ease, transform 180ms ease; } aside.sidebar .nav-subitem::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; opacity: 0.45; } aside.sidebar .nav-subitem:hover { color: var(--klein); background: rgba(0, 47, 167, 0.055); transform: translateX(2px); } aside.sidebar .nav-subitem.active { color: var(--klein); background: rgba(0, 47, 167, 0.09); } aside.sidebar .nav-subitem.active::before { opacity: 1; box-shadow: 0 0 0 4px rgba(0, 47, 167, 0.10); } aside.sidebar .org-switcher { position: absolute; z-index: 6; left: 12px; right: 6px; bottom: 24px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: transparent; color: #31343a; font: inherit; font-size: 14px; text-align: left; cursor: pointer; } aside.sidebar .org-switcher-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } aside.sidebar .org-switcher svg { width: 16px; height: 16px; flex-shrink: 0; color: #575f6f; } aside.sidebar .org-badge { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: var(--st-black); font-weight: 600; font-size: 13px; } aside.sidebar .org-badge img { width: 100%; height: 100%; object-fit: cover; display: block; } body.sidebar-collapsed aside.sidebar .org-switcher { left: 0; right: 0; justify-content: center; } body.sidebar-collapsed aside.sidebar .org-switcher-name, body.sidebar-collapsed aside.sidebar .org-switcher svg { display: none; } aside.sidebar .nav-subitem .pill-mini { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border: 0; border-radius: 999px; background: #fff; color: var(--klein); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; } aside.sidebar .liquid-indicator { position: absolute; top: 0; left: 0; z-index: 2; width: 132px; height: 76px; pointer-events: none; transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; } aside.sidebar .liquid-indicator.is-hidden { opacity: 0; visibility: hidden; } aside.sidebar .liquid-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.14)); transform-origin: left center; } aside.sidebar .liquid-indicator.pulse .liquid-shape { animation: liquid-pulse 520ms cubic-bezier(0.22, 1, 0.36, 1); } @keyframes liquid-pulse { 0%, 100% { transform: scaleX(1); } 42% { transform: scaleX(1.012); } 72% { transform: scaleX(0.998); } } aside.sidebar .indicator-content { position: absolute; top: 0; left: 33px; height: 76px; width: 94px; display: flex; align-items: center; gap: 9px; color: #fff; white-space: nowrap; font-size: 15px; font-weight: 600; transition: opacity 140ms ease, transform 280ms ease; } aside.sidebar .liquid-indicator.wide-label .indicator-content { left: 26px; gap: 7px; } aside.sidebar .liquid-indicator.pulse .indicator-content { animation: label-pulse 520ms ease; } @keyframes label-pulse { 0%, 100% { transform: translateX(0); } 44% { transform: translateX(2px); } } aside.sidebar .indicator-icon-slot { width: 24px; display: grid; place-items: center; } aside.sidebar .indicator-icon-slot svg { width: 20px; height: 20px; stroke-width: 1.9; } aside.sidebar .nav-panel > nav { padding: 8px 16px 20px; } @media (max-height: 780px) { aside.sidebar .nav-panel { padding-top: 8px; } aside.sidebar .nav-item { height: 68px; } } .aside-foot { margin-top: auto; padding-top: 14px; border-top: 0; } .user { border-radius: 999px; background: #f3f4f7; justify-content: space-between; padding: 8px 14px 8px 8px; } .user .av { width: 36px; height: 36px; border-radius: 50%; background: #17191d; font-size: 14px; } .user .em { flex: 1; margin-left: 8px; font-size: 14px; color: #2f3340; line-height: 1.2; } .user::after { content: "›"; color: #575f6f; font-size: 20px; line-height: 1; } body.sidebar-collapsed aside.sidebar { padding: 0; } body.sidebar-collapsed .sidebar-head { gap: 6px; margin: 0; padding: 0; height: var(--topbar-height); min-height: var(--topbar-height); } body.sidebar-collapsed .brand-clip { width: 34px; height: 34px; display: flex; align-items: center; justify-content: flex-start; } body.sidebar-collapsed .brand-logo { width: auto; height: 34px; max-width: none; } body.sidebar-collapsed .sidebar-toggle { left: 68px; } body.sidebar-collapsed .sidebar-toggle-icon--collapse { display: none; } body.sidebar-collapsed .sidebar-toggle-icon--expand { display: block; } body.sidebar-collapsed .search-box { justify-content: center; gap: 0; padding: 9px 0; cursor: pointer; } body.sidebar-collapsed .search-box input, body.sidebar-collapsed .search-box .kbd, body.sidebar-collapsed aside.sidebar nav a span, body.sidebar-collapsed aside.sidebar nav a .pill-mini, body.sidebar-collapsed .user .em { display: none; } body.sidebar-collapsed .nav-section { height: 1px; margin: 10px 0 8px; padding: 0; overflow: hidden; color: transparent; background: var(--border-faint); } body.sidebar-collapsed aside.sidebar nav a { justify-content: center; gap: 0; padding: 10px 0; } body.sidebar-collapsed .aside-foot { padding-top: 12px; } body.sidebar-collapsed .user { justify-content: center; padding: 8px 0; } body.sidebar-collapsed .nav-panel, body.sidebar-collapsed .user .em, body.sidebar-collapsed .user::after { display: none; } /* ─── Main + grid background ─── */ .app > main { grid-column: 2; grid-row: 2; position: relative; background: #fff; min-width: 0; min-height: 0; overflow-x: clip; overflow-y: visible; } .app:has(.pipeline-page) { height: 100vh; overflow: hidden; } .app > main:has(.pipeline-page) { min-height: 0; overflow: hidden; display: flex; flex-direction: column; } .grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(24, 31, 42, 0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 31, 42, 0.032) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 17%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.78) 83%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 17%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.78) 83%, #000 100%); } .scatter { position: absolute; font-family: var(--font-mono); font-size: 12px; line-height: 1.05; color: var(--black-alpha-20); white-space: pre; pointer-events: none; opacity: .85; letter-spacing: .04em; } .tag-corner { position: absolute; color: var(--black-alpha-48); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; pointer-events: none; opacity: .85; z-index: 1; } .sq-mark { position: absolute; width: 5px; height: 5px; background: var(--black-alpha-24); pointer-events: none; } /* ─── Topbar ─── */ .topbar { grid-column: 2; grid-row: 1; 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; box-shadow: 0 4px 16px rgba(20, 27, 38, 0.035); position: sticky; top: 0; z-index: var(--z-topbar); align-self: start; height: var(--topbar-height); min-height: var(--topbar-height); min-width: 0; box-sizing: border-box; flex-wrap: nowrap; } .crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--black-alpha-48); } .crumbs .sep { color: var(--black-alpha-32); } .crumbs .here { color: var(--accent-black); font-weight: 500; } .crumbs a:hover { color: var(--accent-black); } /* 顶栏工作模式 · 影擎 .mode-tabs / .mode-tab / moveModeIndicator 原样 */ .topbar .mode-tabs { position: relative; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; flex: 0 0 auto; width: max-content; max-width: none; gap: 16px; } .topbar .mode-tabs.no-active .mode-indicator-mask { opacity: 0; } .mode-clip-defs { position: absolute; width: 0; height: 0; overflow: hidden; max-width: none; } .mode-indicator-mask { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 180ms ease; } .mode-indicator { position: absolute; top: 0; left: 0; width: 104px; height: 44px; border-radius: 22px; background: #101012; box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16); pointer-events: none; transform: translateX(0px); transform-origin: left center; transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1); will-change: transform, width; } .topbar .mode-tabs .mode-tab { position: relative; z-index: 2; box-sizing: border-box; width: auto; min-width: 104px; height: 44px; padding: 0 22px; border: 1px solid #d9dde3; border-radius: 22px; color: #2b2e33; background: rgba(31, 39, 51, 0.025); font: inherit; cursor: pointer; flex: 0 0 auto; transition: background 180ms ease, color 180ms ease, border-color 180ms ease; } .topbar .mode-tabs .mode-tab.active { color: #fff; background: transparent; border-color: transparent; box-shadow: none; } @media (max-width: 1500px) { .topbar .mode-tabs { gap: 9px; } .topbar .mode-tabs .mode-tab { min-width: 88px; padding: 0 16px; } } .top-search { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 196px; padding: 0 12px; border: 1px solid #eeeeee; border-radius: var(--r-pill); background: #f5f5f5; color: var(--black-alpha-48); font: inherit; font-size: 14px; cursor: pointer; transition: border-color var(--t-base), background var(--t-base), transform var(--t-base); } .top-search:hover { border-color: #e0e0e0; background: #f0f0f0; transform: translateY(-1px); } .top-search svg { width: var(--icon-m); height: var(--icon-m); flex-shrink: 0; } .top-search span:not(.kbd) { flex: 1; text-align: left; } .top-search .kbd { margin-left: auto; font-family: var(--font-inter); font-weight: 700; font-size: 12px; color: var(--black-alpha-40); letter-spacing: .02em; } .topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; } .balance-chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 12px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-pill); font-size: 13px; color: var(--black-alpha-56); cursor: pointer; transition: background var(--t-base), border-color var(--t-base), transform var(--t-base); } .balance-chip:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); transform: translateY(-1px); } .balance-chip strong { color: var(--accent-black); font-weight: 600; font-variant-numeric: tabular-nums; } .balance-chip svg { width: var(--icon-m); height: var(--icon-m); color: var(--black-alpha-48); } .icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-pill); color: var(--black-alpha-56); cursor: pointer; position: relative; transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-base); } .icon-btn:hover { background: var(--background-lighter); color: var(--accent-black); border-color: var(--border-loud); transform: translateY(-1px); } .icon-btn svg { width: var(--icon-m); height: var(--icon-m); } .icon-btn .dot-noti { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-crimson); border: 1.5px solid var(--surface); } .icon-btn .count-noti { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-crimson); color: var(--accent-white); border: 1.5px solid var(--surface); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1; pointer-events: none; } /* ─── Topbar · 任务队列 chip ─── */ .queue-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 8px 0 12px; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-pill); font-size: 13px; color: var(--accent-black); cursor: pointer; transition: background var(--t-base), border-color var(--t-base); } .queue-chip:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); } .queue-chip[hidden] { display: none; } .queue-chip svg { width: var(--icon-m); height: var(--icon-m); color: var(--black-alpha-56); } .queue-chip .count { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 20px; padding: 0 6px; background: var(--heat-12); color: var(--heat); border: 1px solid var(--heat-20); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .02em; } /* ─── Content ─── */ .content { /* 对齐 HTML 设计稿 #page-content(24px 28px 60px):原 48px 顶距使全站标题整体偏低 24px 禁止设 z-index:会形成层叠上下文,页面里的 fixed 抽屉/弹窗再高也盖不住顶栏。 网格底 .grid-bg 在前、本节点 position:relative,DOM 顺序即可压住网格。 */ padding: 24px 28px 60px; position: relative; z-index: auto; min-height: calc(100vh - var(--topbar-height)); animation: yz-page-enter 280ms cubic-bezier(0.22, 1, 0.36, 1); } .content:has(.pipeline-page) { padding: 0; flex: 1 1 auto; height: auto; min-height: 0; overflow: hidden; animation: none; } @keyframes yz-page-enter { from { opacity: 0; } to { opacity: 1; } } .content > .corner-mark { display: none; } .page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 36px; gap: 16px; flex-wrap: wrap; } .page-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--accent-black); } .page-head .sub { font-size: 14px; color: var(--black-alpha-56); margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .page-head .sub .mono { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .04em; } .page-head .actions { display: flex; gap: 10px; align-items: center; } /* page-head 右上角主操作按钮 · 统一尺寸(对齐 .btn-lg),覆盖各页里 btn / btn-sm / btn-lg 混用 */ .page-head .actions > .btn, .page-head .actions > a.btn, .page-head .actions > button.btn { height: 40px; padding: 0 20px; font-size: 14px; } .page-head .actions > .btn svg { width: var(--icon-s); height: var(--icon-s); } .page-head .actions > .btn.btn-create svg { width: var(--icon-m); height: var(--icon-m); } .section-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; } .section-h h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--accent-black); } .section-h .more { font-family: var(--font-mono); font-size: 12px; color: var(--black-alpha-48); letter-spacing: .04em; cursor: pointer; transition: color var(--t-base); } .section-h .more:hover { color: var(--heat); } /* ─── Buttons · 统一高度 36 / 8 px 圆角 / 真 1px border / hover bg 切换 ─── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; background: var(--surface); color: var(--accent-black); cursor: pointer; white-space: nowrap; font-family: inherit; border: 1px solid var(--black-alpha-12); transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast); } .btn:hover { background: var(--black-alpha-4); border-color: var(--black-alpha-24); transform: translateY(-1px); } .btn:active { background: var(--black-alpha-7); transform: scale(.99); } .btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background-base), 0 0 0 4px var(--heat-40); } .btn:disabled, .btn.disabled { color: var(--black-alpha-32); background: var(--black-alpha-5); border-color: var(--black-alpha-12); cursor: not-allowed; transform: none; } .btn:disabled:hover, .btn.disabled:hover { background: var(--black-alpha-5); border-color: var(--black-alpha-12); } .btn svg { width: var(--icon-s); height: var(--icon-s); } .btn[hidden] { display: none; } .btn-primary { background: var(--heat); color: var(--accent-white); border-color: var(--heat); font-weight: 600; /* 继承 .btn 的 height: 36px / padding: 0 16px */ box-shadow: var(--shadow-cta); } .btn-primary:hover { background: var(--heat-hover); border-color: var(--heat-hover); box-shadow: var(--shadow-cta-hover); transform: translateY(-2px); } .btn-primary:active { background: var(--heat); transform: scale(.995); box-shadow: var(--shadow-cta-active); } .btn-primary:disabled, .btn-primary.disabled { background: var(--heat-40); color: var(--accent-white); border-color: var(--heat-40); box-shadow: none; } .btn-ghost { background: transparent; border-color: transparent; color: var(--black-alpha-56); } .btn-ghost:hover { background: var(--black-alpha-4); border-color: transparent; color: var(--accent-black); } .btn-ghost:active { background: var(--black-alpha-7); } .btn-sm { height: 28px; padding: 0 12px; font-size: 12px; border-radius: var(--r-md); } .btn-lg { height: 40px; padding: 0 20px; font-size: 14px; } /* ─── Pills ─── */ .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; border: 1px solid var(--border-faint); background: var(--surface); color: var(--black-alpha-56); white-space: nowrap; } .pill.info { background: var(--heat-12); color: var(--heat); border-color: var(--heat-20); } .pill.ok { background: var(--forest-bg); color: var(--accent-forest); border-color: var(--forest-bd); } .pill.err { background: var(--crimson-bg); color: var(--accent-crimson); border-color: var(--crimson-bd); } .pill.neutral { background: var(--black-alpha-4); color: var(--black-alpha-56); border-color: var(--border-faint); } .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } /* ─── Cards / containers · V2.1 统一 8 px 圆角 ─── */ .card-hard { background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); position: relative; } /* V2.1 spec §5.3 · 容器四角准星 · SVG 圆弧内凹(22×21 viewBox) */ .card-hard.with-corners::before, .card-hard.with-corners::after, .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; pointer-events: none; } .card-hard.with-corners::before { top: -7px; left: -7px; } .card-hard.with-corners::after { bottom: -7px; right: -7px; } .with-corners .corner-tr { top: -7px; right: -7px; } .with-corners .corner-bl { bottom: -7px; left: -7px; } /* ─── Stats (KPI bar) ─── */ .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border-faint); border-radius: var(--r-md); position: relative; margin-bottom: 36px; overflow: hidden; } .stat { padding: 24px 28px; border-right: 1px solid var(--border-faint); position: relative; cursor: pointer; transition: background var(--t-base); /* 余额是 外层卡片需 position: relative 触发: .product-card / .asset-card / .project-card / .task-card / .model-card hover --------------------------------------------------------- */ .card-del-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; background: rgba(255,255,255,.95); border: 1px solid var(--black-alpha-12); border-radius: var(--r-md); display: grid; place-items: center; color: var(--black-alpha-56); cursor: pointer; opacity: 0; transition: opacity .18s, color .18s, border-color .18s, background .18s; box-shadow: 0 2px 6px rgba(0,0,0,.06); z-index: 5; padding: 0; font-family: inherit; } .card-del-btn svg { width: 14px; height: 14px; } .product-card:hover .card-del-btn, .asset-card:hover .card-del-btn, .project-card:hover .card-del-btn, .task-card:hover .card-del-btn, .model-card:hover .card-del-btn { opacity: 1; } .card-del-btn:hover { color: var(--accent-crimson); border-color: var(--accent-crimson); background: var(--surface); } .card-del-btn:active { transform: scale(.95); } /* ─── Drawer ─── */ .drawer-bg { position: fixed; inset: 0; background: rgba(21, 20, 15, .32); display: block; z-index: var(--z-overlay); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; } .drawer-bg.show { opacity: 1; visibility: visible; pointer-events: auto; } .drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 540px; max-width: 100vw; background: var(--surface); border-left: 1px solid var(--border-faint); z-index: calc(var(--z-overlay) + 5); transform: translateX(100%); transition: transform .25s cubic-bezier(.32, .72, 0, 1); display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(21, 20, 15, .04); } .drawer.show { transform: translateX(0); } .drawer-h { padding: 20px 24px; border-bottom: 1px solid var(--border-faint); display: flex; align-items: center; } .drawer-h h3 { font-size: 16px; font-weight: 600; color: var(--accent-black); } .drawer-h .x { margin-left: auto; width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--black-alpha-56); cursor: pointer; transition: background var(--t-base); } .drawer-h .x:hover { background: var(--black-alpha-4); color: var(--accent-black); } .drawer-b { padding: 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; } .drawer-f { padding: 16px 24px; border-top: 1px solid var(--border-faint); display: flex; gap: 10px; justify-content: flex-end; background: var(--background-lighter); } /* ─── Scrollbar · 全局隐藏可视滚动条,保留滚动能力 用 !important 覆盖各页 inline