162 lines
7.5 KiB
CSS
162 lines
7.5 KiB
CSS
/* 本模块样式仅保留动效/工具类;base 重置与 tailwind 由平台全局 index.css 提供 */
|
||
|
||
.welltrust-root button { cursor: pointer; }
|
||
.welltrust-root input, .welltrust-root textarea { font-family: inherit; }
|
||
|
||
/* ═══════════════════════════════════════════
|
||
太空舱 / 三栏工作区 动效层
|
||
═══════════════════════════════════════════ */
|
||
|
||
@keyframes fade-in {
|
||
from { opacity: 0; transform: translateY(8px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
@keyframes pulse-glow {
|
||
0%, 100% { opacity: 0.6; }
|
||
50% { opacity: 1; }
|
||
}
|
||
@keyframes number-roll {
|
||
from { opacity: 0; transform: translateY(10px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
@keyframes slide-in-left {
|
||
from { opacity: 0; transform: translateX(-20px); }
|
||
to { opacity: 1; transform: translateX(0); }
|
||
}
|
||
@keyframes welltrust-slide-in-right {
|
||
from { opacity: 0; transform: translateX(20px); }
|
||
to { opacity: 1; transform: translateX(0); }
|
||
}
|
||
@keyframes slide-in-up {
|
||
from { opacity: 0; transform: translateY(16px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
@keyframes card-in {
|
||
from { opacity: 0; transform: translateY(8px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
@keyframes notice-in {
|
||
from { opacity: 0; transform: translateX(-12px); }
|
||
to { opacity: 1; transform: translateX(0); }
|
||
}
|
||
@keyframes content-reveal {
|
||
from { opacity: 0; transform: translateY(18px) scale(0.97); }
|
||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||
}
|
||
@keyframes welltrust-space-pulse {
|
||
0%, 100% { opacity: 0.55; }
|
||
50% { opacity: 1; }
|
||
}
|
||
@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)); }
|
||
}
|
||
@keyframes dot-blink {
|
||
0%, 100% { opacity: 1; transform: scale(1); }
|
||
50% { opacity: 0.35; transform: scale(0.78); }
|
||
}
|
||
@keyframes welltrust-scan-sweep {
|
||
0% { left: -30%; }
|
||
100% { left: 110%; }
|
||
}
|
||
@keyframes stream-caret-blink {
|
||
0%, 45% { opacity: 1; }
|
||
50%, 95% { opacity: 0; }
|
||
100% { opacity: 1; }
|
||
}
|
||
@keyframes typing-dot {
|
||
0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
|
||
30% { opacity: 1; transform: translateY(-3px); }
|
||
}
|
||
@keyframes bar-grow {
|
||
from { transform: scaleY(0.05); }
|
||
to { transform: scaleY(1); }
|
||
}
|
||
@keyframes dash-flow {
|
||
to { stroke-dashoffset: -24; }
|
||
}
|
||
|
||
/* ═══════════════════════════════════════════
|
||
指标知识图谱 · 深空叙事动效层
|
||
(恒星呼吸 / 声呐告警 / 轨道旋转 / 传播涟漪 / 雷达扫描 / 星云漂移)
|
||
═══════════════════════════════════════════ */
|
||
@keyframes net-breathe {
|
||
0%, 100% { transform: scale(1); opacity: 0.5; }
|
||
50% { transform: scale(1.16); opacity: 0.95; }
|
||
}
|
||
@keyframes net-sonar {
|
||
0% { transform: scale(1); opacity: 0.5; }
|
||
75%,100% { transform: scale(3.6); opacity: 0; }
|
||
}
|
||
@keyframes net-orbit-spin { to { transform: rotate(360deg); } }
|
||
/* 本体裂变:环上药签的入场不再用 animation(fill-mode:both 会把 0% 关键帧钉死,
|
||
动画被挂起时药签永远停在 opacity:0;改由组件内 JS 定时器翻状态 + 内层 <g> 的 transition 承担,
|
||
终态恒为 scale(1)/opacity:1)。此处仅保留 keyframes 以备非交互场景复用。 */
|
||
@keyframes ont-sat-pop {
|
||
0% { transform: scale(0.2); opacity: 0; }
|
||
60% { opacity: 1; }
|
||
100% { transform: scale(1); opacity: 1; }
|
||
}
|
||
@keyframes net-ripple-in {
|
||
from { transform: scale(0.35); opacity: 0; }
|
||
to { transform: scale(1); opacity: 1; }
|
||
}
|
||
@keyframes net-radar { to { transform: rotate(360deg); } }
|
||
@keyframes net-twinkle {
|
||
0%, 100% { opacity: var(--tw-o, 0.5); }
|
||
50% { opacity: 0.08; }
|
||
}
|
||
@keyframes net-nebula {
|
||
0%, 100% { transform: translate(0, 0) scale(1); }
|
||
50% { transform: translate(-5%, 4%) scale(1.12); }
|
||
}
|
||
|
||
/* SVG 几何元素统一用 fill-box 做变换基准,保证 scale/rotate 围绕自身中心 */
|
||
.net-breathe { transform-box: fill-box; transform-origin: center; animation: net-breathe 4.2s ease-in-out infinite; }
|
||
.net-sonar { transform-box: fill-box; transform-origin: center; animation: net-sonar 3.6s ease-out infinite; }
|
||
.net-sonar-slow { animation-duration: 5.4s; }
|
||
.net-orbit { transform-box: fill-box; transform-origin: center; animation: net-orbit-spin 52s linear infinite; }
|
||
.net-orbit-rev { animation-direction: reverse; animation-duration: 78s; }
|
||
.net-ripple { transform-box: fill-box; transform-origin: center; animation: net-ripple-in 0.7s cubic-bezier(0.34,1.56,0.64,1) both; }
|
||
.net-twinkle { animation: net-twinkle var(--tw-d, 4s) ease-in-out infinite; animation-delay: var(--tw-delay, 0s); }
|
||
.net-nebula { animation: net-nebula var(--nb-d, 46s) ease-in-out infinite alternate; }
|
||
|
||
.animate-fade-in { animation: fade-in 0.4s ease-out; }
|
||
.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); }
|
||
.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; }
|
||
.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; }
|
||
.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; }
|
||
.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) */
|
||
.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; }
|
||
|
||
.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); }
|
||
.ghost-btn { transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
|
||
.ghost-btn:hover { background: var(--hover-bg, rgba(79,70,229,0.07)); }
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.welltrust-root *, .welltrust-root *::before, .welltrust-root *::after {
|
||
animation-duration: 0.01ms !important;
|
||
animation-iteration-count: 1 !important;
|
||
transition-duration: 0.01ms !important;
|
||
}
|
||
}
|