update css
This commit is contained in:
+47
-14
@@ -1,26 +1,58 @@
|
||||
import { lazy, Suspense } from 'react';
|
||||
import { Routes, Route } from 'react-router-dom';
|
||||
import HomePage from '@/pages/HomePage';
|
||||
import SSOLogin from '@/pages/SSOLogin';
|
||||
import LoginPage from '@/pages/LoginPage';
|
||||
import RequireAuth from '@/shared/components/RequireAuth';
|
||||
import ModuleTitle from '@/shared/components/ModuleTitle';
|
||||
import AIMCockpit from '@/modules/ai-matching/pages/AIMCockpit';
|
||||
import CostCockpit from '@/modules/cost-analysis/pages/CostCockpit';
|
||||
import KnowledgeGraphHome from '@/modules/knowledge-graph/pages/KnowledgeGraphHome';
|
||||
import SpaceCockpit from '@/modules/knowledge-graph/pages/SpaceCockpit';
|
||||
import BomxReuseHome from '@/modules/bomx-reuse-analyzer/pages/BomxReuseHome';
|
||||
import CostCockpitFull from '@/modules/order-cost-analysis/pages/CostCockpitFull';
|
||||
import AIMCockpitFull from '@/modules/order-cost-analysis/pages/AIMCockpitFull';
|
||||
import BexellSchedulingApp from '@/modules/bexell-scheduling-ai/App';
|
||||
import SanruiAIDesignHome from '@/modules/sanrui-ai-design/pages/SanruiAIDesignHome';
|
||||
import JieyaIbpApp from '@/modules/jieya-ibp/App';
|
||||
import WelltrustQapApp from '@/modules/welltrust-qap/App';
|
||||
import BaodeWebApp from '@/modules/baode-web/App';
|
||||
import SupplierPlatformApp from '@/modules/supplier-platform/App';
|
||||
import WucQuotationApp from '@/modules/wuc-quotation/App';
|
||||
|
||||
const AIMCockpit = lazy(() => import('@/modules/ai-matching/pages/AIMCockpit'));
|
||||
const CostCockpit = lazy(() => import('@/modules/cost-analysis/pages/CostCockpit'));
|
||||
const KnowledgeGraphHome = lazy(() => import('@/modules/knowledge-graph/pages/KnowledgeGraphHome'));
|
||||
const SpaceCockpit = lazy(() => import('@/modules/knowledge-graph/pages/SpaceCockpit'));
|
||||
const BomxReuseHome = lazy(() => import('@/modules/bomx-reuse-analyzer/pages/BomxReuseHome'));
|
||||
const CostCockpitFull = lazy(() => import('@/modules/order-cost-analysis/pages/CostCockpitFull'));
|
||||
const AIMCockpitFull = lazy(() => import('@/modules/order-cost-analysis/pages/AIMCockpitFull'));
|
||||
const BexellSchedulingApp = lazy(() => import('@/modules/bexell-scheduling-ai/App'));
|
||||
const SanruiAIDesignHome = lazy(() => import('@/modules/sanrui-ai-design/pages/SanruiAIDesignHome'));
|
||||
const JieyaIbpApp = lazy(() => import('@/modules/jieya-ibp/App'));
|
||||
const WelltrustQapApp = lazy(() => import('@/modules/welltrust-qap/App'));
|
||||
const BaodeWebApp = lazy(() => import('@/modules/baode-web/App'));
|
||||
const SupplierPlatformApp = lazy(() => import('@/modules/supplier-platform/App'));
|
||||
const WucQuotationApp = lazy(() => import('@/modules/wuc-quotation/App'));
|
||||
|
||||
function ModuleLoading() {
|
||||
const spinnerStyle: React.CSSProperties = {
|
||||
width: 44,
|
||||
height: 44,
|
||||
border: '3px solid rgba(0, 212, 255, 0.2)',
|
||||
borderTopColor: '#00d4ff',
|
||||
borderRadius: '50%',
|
||||
animation: 'spin 1s linear infinite',
|
||||
};
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
position: 'fixed',
|
||||
inset: 0,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
gap: 18,
|
||||
background: '#000a1e',
|
||||
zIndex: 9999,
|
||||
}}
|
||||
>
|
||||
<div style={spinnerStyle} />
|
||||
<div style={{ color: '#00d4ff', fontSize: 14, letterSpacing: 2 }}>模块加载中…</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<Suspense fallback={<ModuleLoading />}>
|
||||
<Routes>
|
||||
<Route path="/login" element={<LoginPage />} />
|
||||
<Route path="/sso-login" element={<SSOLogin />} />
|
||||
@@ -40,5 +72,6 @@ export default function App() {
|
||||
<Route path="/supplier-platform" element={<RequireAuth><ModuleTitle title="供应商智能管控平台"><SupplierPlatformApp /></ModuleTitle></RequireAuth>} />
|
||||
<Route path="/wuc-quotation" element={<RequireAuth><ModuleTitle title="武船AI智能报价平台"><WucQuotationApp /></ModuleTitle></RequireAuth>} />
|
||||
</Routes>
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
flex: none; width: 18px; height: 18px; border-radius: 50%;
|
||||
display: grid; place-items: center; font-size: 11px; color: #fff; background: #cbd5e1;
|
||||
}
|
||||
.s-执行中 .fnode-dot { background: var(--brand); animation: pulse 1.6s ease-in-out infinite; }
|
||||
.s-执行中 .fnode-dot { background: var(--brand); animation: baode-pulse 1.6s ease-in-out infinite; }
|
||||
.s-等待填报 .fnode-dot { background: var(--wait); }
|
||||
.s-待补全 .fnode-dot { background: var(--cta); }
|
||||
.s-已完成 .fnode-dot { background: var(--pass); }
|
||||
@@ -386,10 +386,10 @@
|
||||
.checkpage .fail { color: var(--fail); font-weight: 600; }
|
||||
|
||||
@keyframes floatIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
|
||||
@keyframes pulse {
|
||||
@keyframes baode-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
|
||||
50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* { animation: none !important; transition: none !important; }
|
||||
.baode-root * { animation: none !important; transition: none !important; }
|
||||
}
|
||||
|
||||
@@ -12,7 +12,9 @@ export default function Drawer({ open, title, onClose, children, width = 540 }:
|
||||
}, [open, onClose]);
|
||||
|
||||
return createPortal(
|
||||
<>
|
||||
// 模块根容器包裹层:为 portal 内容提供 .bomx-app 作用域下的 CSS 变量;
|
||||
// overlay/panel 均 position:fixed,且平台 body 为 overflow:hidden,包裹层不影响布局
|
||||
<div className="bomx-app">
|
||||
{/* 遮罩:覆盖全屏(含导航条),点击任意非抽屉区域关闭 */}
|
||||
{open && <div className="drawer-overlay" onClick={onClose} />}
|
||||
|
||||
@@ -29,7 +31,7 @@ export default function Drawer({ open, title, onClose, children, width = 540 }:
|
||||
</div>
|
||||
<div className="drawer-content">{children}</div>
|
||||
</div>
|
||||
</>,
|
||||
</div>,
|
||||
document.body
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
风格:Premium Light · 深度层次 · 流畅交互
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
.bomx-app {
|
||||
--header-h: 64px;
|
||||
/* 品牌渐变 */
|
||||
--grad-brand: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
|
||||
@@ -85,9 +85,9 @@
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
|
||||
.bomx-app ::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
.bomx-app ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
|
||||
.bomx-app ::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
|
||||
|
||||
/* ===== Header ===== */
|
||||
.app-header {
|
||||
@@ -260,7 +260,7 @@
|
||||
.btn-sm { height: 32px; padding: 0 13px; font-size: 12px; border-radius: var(--r-sm); }
|
||||
|
||||
/* ===== Form ===== */
|
||||
input[type="text"], input[type="number"], select {
|
||||
.bomx-app input[type="text"], .bomx-app input[type="number"], .bomx-app select {
|
||||
height: 38px;
|
||||
padding: 0 13px;
|
||||
border: 1px solid var(--line-2);
|
||||
@@ -273,7 +273,7 @@ input[type="text"], input[type="number"], select {
|
||||
transition: all var(--t-fast) var(--ease);
|
||||
}
|
||||
|
||||
input:focus, select:focus {
|
||||
.bomx-app input:focus, .bomx-app select:focus {
|
||||
border-color: var(--indigo);
|
||||
box-shadow: 0 0 0 3px rgba(99,102,241,0.14);
|
||||
}
|
||||
@@ -589,7 +589,7 @@ input:focus, select:focus {
|
||||
|
||||
|
||||
|
||||
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
|
||||
@keyframes bomx-fade-in { from { opacity: 0; } to { opacity: 1; } }
|
||||
|
||||
.drawer {
|
||||
position: fixed;
|
||||
@@ -645,7 +645,7 @@ input:focus, select:focus {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
animation: fade-in 0.2s ease;
|
||||
animation: bomx-fade-in 0.2s ease;
|
||||
}
|
||||
|
||||
.confirm-modal {
|
||||
@@ -743,10 +743,10 @@ input:focus, select:focus {
|
||||
.checkbox-label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
|
||||
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--indigo); cursor: pointer; }
|
||||
|
||||
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
|
||||
.bomx-app :focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
|
||||
.bomx-app *, .bomx-app *::before, .bomx-app *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
|
||||
}
|
||||
|
||||
/* ===== 修复:BOM 树表头列样式统一 ===== */
|
||||
@@ -896,11 +896,11 @@ input:focus, select:focus {
|
||||
border: 2.5px solid var(--line-1);
|
||||
border-top-color: var(--accent-primary);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
animation: bomx-spin 0.8s linear infinite;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
@keyframes bomx-spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@@ -1168,7 +1168,7 @@ input:focus, select:focus {
|
||||
border: 2px solid var(--indigo-soft);
|
||||
border-top-color: var(--indigo);
|
||||
border-radius: 50%;
|
||||
animation: spin 0.7s linear infinite;
|
||||
animation: bomx-spin 0.7s linear infinite;
|
||||
}
|
||||
|
||||
/* 阶段信息 */
|
||||
|
||||
@@ -82,7 +82,7 @@ function AppInner() {
|
||||
if (!dbReady) {
|
||||
const errMsg = dbError ?? (dbTimedOut ? t.common.initTimeout : null);
|
||||
return (
|
||||
<div style={{
|
||||
<div className="jieya-root" style={{
|
||||
width: '100vw', height: '100vh', display: 'flex', alignItems: 'center', justifyContent: 'center',
|
||||
background: tokens.bodyBgImage, color: tokens.textSub, fontSize: 14,
|
||||
}}>
|
||||
@@ -116,7 +116,7 @@ function AppInner() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{
|
||||
<div className="jieya-root" style={{
|
||||
width: '100vw', height: '100vh', display: 'flex', flexDirection: 'column',
|
||||
background: tokens.bodyBgImage, color: tokens.text, overflow: 'hidden',
|
||||
position: 'relative',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* 本模块样式仅保留动效/工具类;base 重置与 tailwind 由平台全局 index.css 提供 */
|
||||
|
||||
button { cursor: pointer; }
|
||||
input, textarea { font-family: inherit; }
|
||||
.jieya-root button { cursor: pointer; }
|
||||
.jieya-root input, .jieya-root textarea { font-family: inherit; }
|
||||
|
||||
/* ═══════════════════════════════════════════
|
||||
太空舱 / 三栏工作区 动效层
|
||||
@@ -23,7 +23,7 @@ input, textarea { font-family: inherit; }
|
||||
from { opacity: 0; transform: translateX(-20px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
@keyframes slide-in-right {
|
||||
@keyframes jieya-slide-in-right {
|
||||
from { opacity: 0; transform: translateX(20px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
@@ -43,11 +43,11 @@ input, textarea { font-family: inherit; }
|
||||
from { opacity: 0; transform: translateY(18px) scale(0.97); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
@keyframes space-pulse {
|
||||
@keyframes jieya-space-pulse {
|
||||
0%, 100% { opacity: 0.55; }
|
||||
50% { opacity: 1; }
|
||||
}
|
||||
@keyframes glow-pulse {
|
||||
@keyframes jieya-glow-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 rgba(79,70,229,0); }
|
||||
50% { box-shadow: 0 0 18px var(--glow-color, rgba(79,70,229,0.35)); }
|
||||
}
|
||||
@@ -55,7 +55,7 @@ input, textarea { font-family: inherit; }
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.35; transform: scale(0.78); }
|
||||
}
|
||||
@keyframes scan-sweep {
|
||||
@keyframes jieya-scan-sweep {
|
||||
0% { left: -30%; }
|
||||
100% { left: 110%; }
|
||||
}
|
||||
@@ -128,27 +128,27 @@ input, textarea { font-family: inherit; }
|
||||
.animate-slide-in { animation: slide-in-left 0.3s ease-out; }
|
||||
.animate-number { animation: number-roll 0.5s ease-out; }
|
||||
.space-animate-left { animation: slide-in-left 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.space-animate-right{ animation: slide-in-right 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.jieya-root .space-animate-right{ animation: jieya-slide-in-right 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.space-animate-up { animation: slide-in-up 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.card-in { animation: card-in 0.35s cubic-bezier(0.4,0,0.2,1) both; }
|
||||
.notice-in { animation: notice-in 0.35s cubic-bezier(0.4,0,0.2,1) both; }
|
||||
.content-reveal { animation: content-reveal 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
|
||||
.jieya-root .content-reveal { animation: content-reveal 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
|
||||
.stream-cursor { animation: stream-cursor-blink 0.9s step-end infinite; }
|
||||
.space-pulse { animation: space-pulse 2.4s ease-in-out infinite; }
|
||||
.jieya-root .space-pulse { animation: jieya-space-pulse 2.4s ease-in-out infinite; }
|
||||
.dot-blink { animation: dot-blink 1.6s ease-in-out infinite; }
|
||||
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }
|
||||
.jieya-root .glow-pulse { animation: jieya-glow-pulse 3s ease-in-out infinite; }
|
||||
.bar-grow { animation: bar-grow 0.6s cubic-bezier(0.4,0,0.2,1) both; transform-origin: bottom; }
|
||||
.dash-flow { animation: dash-flow 1.2s linear infinite; }
|
||||
|
||||
/* 滚动条:颜色由 --scroll-thumb 注入(跟随主题 token) */
|
||||
::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 10px; }
|
||||
::-webkit-scrollbar-corner { background: transparent; }
|
||||
.jieya-root ::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
.jieya-root ::-webkit-scrollbar-track { background: transparent; }
|
||||
.jieya-root ::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 10px; }
|
||||
.jieya-root ::-webkit-scrollbar-corner { background: transparent; }
|
||||
|
||||
.space-scroll::-webkit-scrollbar { width: 4px; height: 8px; }
|
||||
.space-scroll::-webkit-scrollbar-track { background: transparent; }
|
||||
.space-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 4px; }
|
||||
.jieya-root .space-scroll::-webkit-scrollbar { width: 4px; height: 8px; }
|
||||
.jieya-root .space-scroll::-webkit-scrollbar-track { background: transparent; }
|
||||
.jieya-root .space-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 4px; }
|
||||
|
||||
/* 面板通用过渡 */
|
||||
.panel-shell { transition: width 0.3s cubic-bezier(0.4,0,0.2,1); }
|
||||
@@ -156,7 +156,7 @@ input, textarea { font-family: inherit; }
|
||||
.ghost-btn:hover { background: var(--hover-bg, rgba(79,70,229,0.07)); }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
.jieya-root *, .jieya-root *::before, .jieya-root *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
|
||||
@@ -30,7 +30,7 @@ export default function AIMCockpit() {
|
||||
};
|
||||
|
||||
return (
|
||||
<div style={{
|
||||
<div className="ordercost-root" style={{
|
||||
width: '100vw', height: '100vh',
|
||||
overflow: 'hidden',
|
||||
display: 'flex', flexDirection: 'column',
|
||||
|
||||
@@ -83,7 +83,7 @@ export default function CostCockpit() {
|
||||
}, [centerFullscreen]);
|
||||
|
||||
return (
|
||||
<div style={{
|
||||
<div className="ordercost-root" style={{
|
||||
width: '100vw', height: '100vh',
|
||||
overflow: 'hidden',
|
||||
display: 'flex', flexDirection: 'column',
|
||||
|
||||
@@ -91,9 +91,9 @@
|
||||
.space-scroll::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.25); border-radius: 4px; }
|
||||
.space-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.45); }
|
||||
|
||||
::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 10px; }
|
||||
.ordercost-root ::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
.ordercost-root ::-webkit-scrollbar-track { background: transparent; }
|
||||
.ordercost-root ::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 10px; }
|
||||
|
||||
/* 拖入模块处理动画 */
|
||||
@keyframes module-spin {
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
.logo-sub{font-size:10px;color:var(--faint);letter-spacing:1.5px}
|
||||
.live{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;color:var(--blue);
|
||||
border:1px solid var(--blue);border-radius:20px;padding:2px 8px;margin-left:8px}
|
||||
.live i{width:6px;height:6px;border-radius:50%;background:var(--blue);animation:pulse 1.4s infinite}
|
||||
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}
|
||||
.live i{width:6px;height:6px;border-radius:50%;background:var(--blue);animation:hansong-pulse 1.4s infinite}
|
||||
@keyframes hansong-pulse{0%,100%{opacity:1}50%{opacity:.25}}
|
||||
/* 加 .hansong-app 前缀:#nav 会误命中 wuc-quotation 模块的 <nav id="nav">(ID 特异性高于类选择器) */
|
||||
.hansong-app #nav{display:flex;gap:6px;margin-left:14px;flex:1;justify-content:flex-end}
|
||||
.nav-btn{border:1px solid transparent;background:transparent;color:var(--sub);font-size:13px;font-weight:600;
|
||||
@@ -64,7 +64,7 @@
|
||||
.user-role{font-size:10px;color:var(--faint)}
|
||||
|
||||
/* ===== 页面容器 ===== */
|
||||
main{flex:1;overflow:hidden;position:relative}
|
||||
.hansong-app main{flex:1;overflow:hidden;position:relative}
|
||||
.page{position:absolute;inset:0;padding:14px 18px;display:none;flex-direction:column;gap:12px;overflow:hidden}
|
||||
.page.on{display:flex;animation:fadeIn .35s}
|
||||
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1}}
|
||||
@@ -182,13 +182,13 @@ main{flex:1;overflow:hidden;position:relative}
|
||||
/* ===== 比价表 ===== */
|
||||
.tbl-wrap{margin:0 14px 12px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card-solid)}
|
||||
.tbl-title{padding:9px 14px;font-size:12px;font-weight:800;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}
|
||||
table{width:100%;border-collapse:collapse;font-size:12px}
|
||||
th{background:var(--blue-bg);color:var(--sub);font-weight:700;text-align:left;padding:8px 10px;white-space:nowrap;font-size:11px}
|
||||
td{padding:8px 10px;border-top:1px solid var(--line);vertical-align:middle}
|
||||
tr.rec-row{background:linear-gradient(90deg,var(--blue-bg),transparent)}
|
||||
tr.rec-row td:first-child{box-shadow:inset 3px 0 0 var(--blue)}
|
||||
tbody tr{transition:.15s}
|
||||
tbody tr:hover{background:var(--blue-bg)}
|
||||
.hansong-app table{width:100%;border-collapse:collapse;font-size:12px}
|
||||
.hansong-app th{background:var(--blue-bg);color:var(--sub);font-weight:700;text-align:left;padding:8px 10px;white-space:nowrap;font-size:11px}
|
||||
.hansong-app td{padding:8px 10px;border-top:1px solid var(--line);vertical-align:middle}
|
||||
.hansong-app tr.rec-row{background:linear-gradient(90deg,var(--blue-bg),transparent)}
|
||||
.hansong-app tr.rec-row td:first-child{box-shadow:inset 3px 0 0 var(--blue)}
|
||||
.hansong-app tbody tr{transition:.15s}
|
||||
.hansong-app tbody tr:hover{background:var(--blue-bg)}
|
||||
.score-cell{display:flex;align-items:center;gap:6px}
|
||||
.score-bar{width:52px;height:6px;border-radius:3px;background:rgba(120,135,170,.18);overflow:hidden}
|
||||
.score-bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,var(--blue),var(--purple))}
|
||||
@@ -309,10 +309,10 @@ tbody tr:hover{background:var(--blue-bg)}
|
||||
/* ===== AI 思考动画 ===== */
|
||||
.ai-think{padding:34px 20px;text-align:center}
|
||||
.ai-think .orb{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;
|
||||
background:conic-gradient(var(--blue),var(--purple),var(--cyan),var(--blue));animation:spin 1.2s linear infinite;
|
||||
background:conic-gradient(var(--blue),var(--purple),var(--cyan),var(--blue));animation:hansong-spin 1.2s linear infinite;
|
||||
display:flex;align-items:center;justify-content:center}
|
||||
.ai-think .orb::after{content:"";width:42px;height:42px;border-radius:50%;background:var(--card-solid)}
|
||||
@keyframes spin{to{transform:rotate(360deg)}}
|
||||
@keyframes hansong-spin{to{transform:rotate(360deg)}}
|
||||
.think-step{font-size:12px;color:var(--sub);padding:3px 0;opacity:0;animation:fadeUp .3s forwards}
|
||||
.think-step b{color:var(--blue)}
|
||||
.empty-hint{padding:40px 20px;text-align:center;color:var(--faint);font-size:12px}
|
||||
@@ -320,5 +320,5 @@ tbody tr:hover{background:var(--blue-bg)}
|
||||
.sec-label{font-size:11px;font-weight:800;color:var(--faint);letter-spacing:1px;margin:14px 14px 6px}
|
||||
.mini-list{font-size:11px}
|
||||
.mini-list .row{display:flex;gap:8px;padding:5px 0;border-top:1px dashed var(--line);align-items:center}
|
||||
select.sel{border:1px solid var(--line2);background:var(--card-solid);color:var(--ink);border-radius:9px;
|
||||
.hansong-app select.sel{border:1px solid var(--line2);background:var(--card-solid);color:var(--ink);border-radius:9px;
|
||||
padding:6px 10px;font-size:12px;outline:none;cursor:pointer;font-weight:600}
|
||||
|
||||
@@ -82,7 +82,7 @@ function AppInner() {
|
||||
if (!dbReady) {
|
||||
const errMsg = dbError ?? (dbTimedOut ? t.common.initTimeout : null);
|
||||
return (
|
||||
<div style={{
|
||||
<div className="welltrust-root" style={{
|
||||
width: '100vw', height: '100vh', display: 'flex', alignItems: 'center', justifyContent: 'center',
|
||||
background: tokens.bodyBgImage, color: tokens.textSub, fontSize: 14,
|
||||
}}>
|
||||
@@ -116,7 +116,7 @@ function AppInner() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{
|
||||
<div className="welltrust-root" style={{
|
||||
width: '100vw', height: '100vh', display: 'flex', flexDirection: 'column',
|
||||
background: tokens.bodyBgImage, color: tokens.text, overflow: 'hidden',
|
||||
position: 'relative',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* 本模块样式仅保留动效/工具类;base 重置与 tailwind 由平台全局 index.css 提供 */
|
||||
|
||||
button { cursor: pointer; }
|
||||
input, textarea { font-family: inherit; }
|
||||
.welltrust-root button { cursor: pointer; }
|
||||
.welltrust-root input, .welltrust-root textarea { font-family: inherit; }
|
||||
|
||||
/* ═══════════════════════════════════════════
|
||||
太空舱 / 三栏工作区 动效层
|
||||
@@ -23,7 +23,7 @@ input, textarea { font-family: inherit; }
|
||||
from { opacity: 0; transform: translateX(-20px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
@keyframes slide-in-right {
|
||||
@keyframes welltrust-slide-in-right {
|
||||
from { opacity: 0; transform: translateX(20px); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
@@ -43,11 +43,11 @@ input, textarea { font-family: inherit; }
|
||||
from { opacity: 0; transform: translateY(18px) scale(0.97); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
@keyframes space-pulse {
|
||||
@keyframes welltrust-space-pulse {
|
||||
0%, 100% { opacity: 0.55; }
|
||||
50% { opacity: 1; }
|
||||
}
|
||||
@keyframes glow-pulse {
|
||||
@keyframes welltrust-glow-pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 rgba(79,70,229,0); }
|
||||
50% { box-shadow: 0 0 18px var(--glow-color, rgba(79,70,229,0.35)); }
|
||||
}
|
||||
@@ -55,7 +55,7 @@ input, textarea { font-family: inherit; }
|
||||
0%, 100% { opacity: 1; transform: scale(1); }
|
||||
50% { opacity: 0.35; transform: scale(0.78); }
|
||||
}
|
||||
@keyframes scan-sweep {
|
||||
@keyframes welltrust-scan-sweep {
|
||||
0% { left: -30%; }
|
||||
100% { left: 110%; }
|
||||
}
|
||||
@@ -125,27 +125,27 @@ input, textarea { font-family: inherit; }
|
||||
.animate-slide-in { animation: slide-in-left 0.3s ease-out; }
|
||||
.animate-number { animation: number-roll 0.5s ease-out; }
|
||||
.space-animate-left { animation: slide-in-left 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.space-animate-right{ animation: slide-in-right 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.welltrust-root .space-animate-right{ animation: welltrust-slide-in-right 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.space-animate-up { animation: slide-in-up 0.4s cubic-bezier(0.4,0,0.2,1); }
|
||||
.card-in { animation: card-in 0.35s cubic-bezier(0.4,0,0.2,1) both; }
|
||||
.notice-in { animation: notice-in 0.35s cubic-bezier(0.4,0,0.2,1) both; }
|
||||
.content-reveal { animation: content-reveal 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
|
||||
.welltrust-root .content-reveal { animation: content-reveal 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
|
||||
.stream-caret { display: inline-block; width: 2px; height: 0.95em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: stream-caret-blink 1s steps(1) infinite; }
|
||||
.space-pulse { animation: space-pulse 2.4s ease-in-out infinite; }
|
||||
.welltrust-root .space-pulse { animation: welltrust-space-pulse 2.4s ease-in-out infinite; }
|
||||
.dot-blink { animation: dot-blink 1.6s ease-in-out infinite; }
|
||||
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }
|
||||
.welltrust-root .glow-pulse { animation: welltrust-glow-pulse 3s ease-in-out infinite; }
|
||||
.bar-grow { animation: bar-grow 0.6s cubic-bezier(0.4,0,0.2,1) both; transform-origin: bottom; }
|
||||
.dash-flow { animation: dash-flow 1.2s linear infinite; }
|
||||
|
||||
/* 滚动条:颜色由 --scroll-thumb 注入(跟随主题 token) */
|
||||
::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 10px; }
|
||||
::-webkit-scrollbar-corner { background: transparent; }
|
||||
.welltrust-root ::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
.welltrust-root ::-webkit-scrollbar-track { background: transparent; }
|
||||
.welltrust-root ::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 10px; }
|
||||
.welltrust-root ::-webkit-scrollbar-corner { background: transparent; }
|
||||
|
||||
.space-scroll::-webkit-scrollbar { width: 4px; height: 8px; }
|
||||
.space-scroll::-webkit-scrollbar-track { background: transparent; }
|
||||
.space-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 4px; }
|
||||
.welltrust-root .space-scroll::-webkit-scrollbar { width: 4px; height: 8px; }
|
||||
.welltrust-root .space-scroll::-webkit-scrollbar-track { background: transparent; }
|
||||
.welltrust-root .space-scroll::-webkit-scrollbar-thumb { background: var(--scroll-thumb, rgba(79,70,229,0.22)); border-radius: 4px; }
|
||||
|
||||
/* 面板通用过渡 */
|
||||
.panel-shell { transition: width 0.3s cubic-bezier(0.4,0,0.2,1); }
|
||||
@@ -153,7 +153,7 @@ input, textarea { font-family: inherit; }
|
||||
.ghost-btn:hover { background: var(--hover-bg, rgba(79,70,229,0.07)); }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
.welltrust-root *, .welltrust-root *::before, .welltrust-root *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
|
||||
Reference in New Issue
Block a user