视觉语言
Realm 的视觉语言是「末世 HUD」:低饱和、强对比、扫描式、装饰几何感。设计上不追求精致细腻,追求「在路上的机器」感。
色板
琥珀 + 蓝灰是 HUD 基础二元色;薄荷与紫罗兰只在状态指示与链接使用,避免与琥珀抢戏。
间距
8pt 基准:
常用节奏:4 / 8 / 16 / 24 / 40 / 64。
栅格
- 容器最大宽度 1200px(
--container-max) - 正文区最大 720px(
--reading-max) - 移动端断点 768px;平板 1024px;桌面 1280px+
- 桌面端左侧 HUD 固定 240px
关键组件
GlobalHud
components/layout/GlobalHud.tsx:固定在视口顶部的状态条,左侧站点名 + 实时数据,右侧时间戳 + 状态点。永远显示。
LeftPanel
components/layout/LeftPanel.tsx:左侧固定面板,分三段:
_left-panel-core.scss:logo / 状态核心_left-panel-nav.scss:主导航(5 列)_left-panel-status.scss:底部状态行(电池 / 信号 / 模式)
抽屉模式下变 bottom sheet。
NavigationColumns
components/layout/NavigationColumns.tsx:首页 5 个主导航栏,列之间有扫描式分隔线,hover 时 column retract/expand。
LoadingScreen
components/shared/LoadingScreen/:
IndustrialHud.tsx:工业 HUD 风格背景LogoTitle.tsx:站名 logo 打字效果TerminalConsole.tsx:终端式加载日志SplitTransition.tsx:左右分割的过渡
CustomCursor
components/interactive/CustomCursor.tsx:自定义光标,支持 hover label(如「BACK」、「OPEN」)。GOTCHAS 第 7、12 条相关。
装饰几何
- 角部 chunk corner:
::before/::after绘制 L 形角标 - 扫描线:CSS
repeating-linear-gradient模拟 CRT 扫描 - 噪点:
components/effects/Noise.tsx+styles/effects/Noise.module.scss - tesseract:充电时显示的 4D 超正方体(
components/effects/Tesseract.tsx)