feat(education): publish Guanghu subdomain stage one
This commit is contained in:
parent
a57ce92e65
commit
058fd3ed15
43 changed files with 12391 additions and 12 deletions
336
product-source/guanghu-education-industry-os/src/App.tsx
Normal file
336
product-source/guanghu-education-industry-os/src/App.tsx
Normal file
|
|
@ -0,0 +1,336 @@
|
|||
import { invoke } from '@tauri-apps/api/core'
|
||||
import { useMemo, useState } from 'react'
|
||||
import {
|
||||
bundledModules,
|
||||
parseSheetMetrics,
|
||||
routeInstruction,
|
||||
type InstructionRoute,
|
||||
type ModuleEntry,
|
||||
type Surface,
|
||||
} from './core/guanghuKernel'
|
||||
|
||||
type JsonRecord = Record<string, unknown>
|
||||
|
||||
type ChannelSnapshot = {
|
||||
node: JsonRecord
|
||||
fifthDomainLink: JsonRecord
|
||||
moduleRegistry: { modules?: ModuleEntry[] }
|
||||
updateAuthority: JsonRecord
|
||||
channel: JsonRecord & { mountedModules?: string[] }
|
||||
codeChannel: {
|
||||
version?: { version?: string }
|
||||
repositories?: { data?: unknown[] }
|
||||
}
|
||||
}
|
||||
|
||||
type SaveReceipt = {
|
||||
channelId: string
|
||||
moduleId: string
|
||||
sha256: string
|
||||
writtenAt: string
|
||||
state: string
|
||||
}
|
||||
|
||||
const defaultDocument = `# 高中项目师训工作三年专项规划(2026—2029)
|
||||
|
||||
## 第一阶段:攻坚筑基
|
||||
|
||||
- 建立全职导师试点和导师工时保障机制
|
||||
- 形成新师培训、质控、留存三条可量化工作线
|
||||
- 将责任人、时间节点和复盘回执写入同一个工作频道
|
||||
|
||||
## 第二阶段:提质增效
|
||||
|
||||
- 双轨培养与分层培训
|
||||
- 教研训一体化
|
||||
- 质控联动闭环与预警
|
||||
|
||||
## 第三阶段:深耕塑牌
|
||||
|
||||
- 沉淀可复制的高中项目师训模块
|
||||
- 形成跨项目可装配的教育行业能力包
|
||||
`
|
||||
|
||||
const defaultSheet = `教师,培养进度
|
||||
孙雨桐,72
|
||||
周子航,65
|
||||
吴佳怡,58
|
||||
郑思远,42
|
||||
林晓彤,38`
|
||||
|
||||
const navigation: Array<{ id: Surface; label: string; mark: string }> = [
|
||||
{ id: 'channel', label: '我的频道', mark: '湖' },
|
||||
{ id: 'document', label: '智能文档', mark: '文' },
|
||||
{ id: 'sheet', label: '智能表格', mark: '表' },
|
||||
{ id: 'dashboard', label: '图表与仪表盘', mark: '图' },
|
||||
{ id: 'modules', label: '教育模块库', mark: '件' },
|
||||
{ id: 'brain', label: '人格体脑区', mark: '脑' },
|
||||
{ id: 'receipts', label: '执行回执', mark: '证' },
|
||||
]
|
||||
|
||||
function LakeMark() {
|
||||
return <span className="lake-mark" aria-hidden="true"><i /><b /></span>
|
||||
}
|
||||
|
||||
function LoginGate({
|
||||
error,
|
||||
loading,
|
||||
onConnect,
|
||||
}: {
|
||||
error: string
|
||||
loading: boolean
|
||||
onConnect: () => void
|
||||
}) {
|
||||
return <main className="login-gate">
|
||||
<section className="login-window">
|
||||
<div className="window-drag" data-tauri-drag-region />
|
||||
<LakeMark />
|
||||
<p>光湖分域 · 教育行业</p>
|
||||
<h1>进入自己的初始化频道</h1>
|
||||
<span>身份由个人服务器校验,当前设备只负责交互和呈现。</span>
|
||||
<button className="server-entry" disabled={loading} onClick={onConnect}>
|
||||
<i />
|
||||
<span><strong>{loading ? '正在连接小新服务器…' : '进入小新 · 高中项目师训'}</strong><small>XX-GZ-001 · 本机安全密钥直达</small></span>
|
||||
<b>→</b>
|
||||
</button>
|
||||
{error && <div className="login-error">{error}</div>}
|
||||
<div className="reserved-logins">
|
||||
<span>后续登录接口</span>
|
||||
<button disabled>微信</button><button disabled>手机号</button>
|
||||
<button disabled>邮箱</button><button disabled>自建账号</button>
|
||||
</div>
|
||||
<footer><i />不依赖腾讯云在线终端 · 不向服务器部署源码</footer>
|
||||
</section>
|
||||
</main>
|
||||
}
|
||||
|
||||
function StatusCard({ label, value, detail, tone = 'green' }: {
|
||||
label: string
|
||||
value: string
|
||||
detail: string
|
||||
tone?: 'green' | 'blue' | 'amber'
|
||||
}) {
|
||||
return <article className={`status-card status-card--${tone}`}>
|
||||
<span>{label}</span><strong>{value}</strong><small>{detail}</small>
|
||||
</article>
|
||||
}
|
||||
|
||||
function ChannelHome({ snapshot, modules }: { snapshot: ChannelSnapshot; modules: ModuleEntry[] }) {
|
||||
const live = modules.filter((module) => module.state === 'LIVE_STAGE_1').length
|
||||
const mounted = snapshot.channel.mountedModules?.length ?? 0
|
||||
const repositoryCount = snapshot.codeChannel.repositories?.data?.length ?? 0
|
||||
return <div className="page-stack">
|
||||
<header className="page-intro">
|
||||
<p>GH-EDU-CHANNEL-XX-001</p>
|
||||
<h2>小新 · 高中项目师训</h2>
|
||||
<span>这是教育行业操作系统里的第一个初始化频道模板,不是整个产品的边界。</span>
|
||||
</header>
|
||||
<section className="status-grid">
|
||||
<StatusCard label="个人服务器" value={String(snapshot.node.state ?? '已连接')} detail="身份与现实数据锚点 · XX-GZ-001" />
|
||||
<StatusCard label="第五域协议" value={String(snapshot.fifthDomainLink.state ?? '未知')} detail="上游导航 · JD-FD-PRIMARY" tone="blue" />
|
||||
<StatusCard label="真实能力" value={`${live} 个`} detail={`模板已装配 ${mounted} 个模块地址`} tone="amber" />
|
||||
<StatusCard label="代码频道" value={snapshot.codeChannel.version?.version ?? '未知'} detail={`${repositoryCount} 个服务器内仓库`} tone="blue" />
|
||||
</section>
|
||||
<section className="work-grid">
|
||||
<article className="work-panel">
|
||||
<header><h3>本频道第一批真实工作</h3><span>来自小新需求记录</span></header>
|
||||
<ul>
|
||||
<li><b>01</b><span><strong>三年专项规划</strong><small>培训、质控、留存三条工作线</small></span></li>
|
||||
<li><b>02</b><span><strong>导师工时冲突</strong><small>春秋排课错配、身兼两职、管理无抓手</small></span></li>
|
||||
<li><b>03</b><span><strong>新师转正内容</strong><small>海报标题、寄语与群内文案</small></span></li>
|
||||
</ul>
|
||||
</article>
|
||||
<article className="work-panel">
|
||||
<header><h3>装配规则</h3><span>光湖是主控上游</span></header>
|
||||
<div className="rule-list">
|
||||
<p><i />外部软件只拆零件,不整体接入</p>
|
||||
<p><i />服务器只接发行物,不保存产品源码</p>
|
||||
<p><i />保存动作必须返回服务器回执</p>
|
||||
<p><i />预登记不等于已经可以使用</p>
|
||||
</div>
|
||||
</article>
|
||||
</section>
|
||||
</div>
|
||||
}
|
||||
|
||||
function ServerEditor({
|
||||
kind,
|
||||
value,
|
||||
onChange,
|
||||
onSave,
|
||||
saving,
|
||||
}: {
|
||||
kind: 'document' | 'sheet'
|
||||
value: string
|
||||
onChange: (value: string) => void
|
||||
onSave: () => void
|
||||
saving: boolean
|
||||
}) {
|
||||
return <section className="editor-page">
|
||||
<header>
|
||||
<div><p>{kind === 'document' ? 'GH-EDU-OFFICE-DOC-001' : 'GH-EDU-OFFICE-SHEET-001'}</p>
|
||||
<h2>{kind === 'document' ? '智能文档' : '智能表格数据'}</h2>
|
||||
<span>内容直接读写小新服务器,不保存在浏览器本地。</span></div>
|
||||
<button onClick={onSave} disabled={saving}>{saving ? '正在写入服务器…' : '保存并生成回执'}</button>
|
||||
</header>
|
||||
<textarea aria-label={kind === 'document' ? '服务器文档' : '服务器表格'} value={value} onChange={(event) => onChange(event.target.value)} />
|
||||
</section>
|
||||
}
|
||||
|
||||
function Dashboard({ sheet }: { sheet: string }) {
|
||||
const metrics = parseSheetMetrics(sheet)
|
||||
const highest = metrics.reduce((best, item) => item.value > best.value ? item : best, { label: '—', value: 0 })
|
||||
const average = metrics.length ? Math.round(metrics.reduce((sum, item) => sum + item.value, 0) / metrics.length * 10) / 10 : 0
|
||||
return <div className="page-stack">
|
||||
<header className="page-intro"><p>GH-EDU-OFFICE-DASH-001</p><h2>新师培养数据投影</h2><span>图表由当前服务器表格即时计算,不另造一份数据。</span></header>
|
||||
<section className="status-grid">
|
||||
<StatusCard label="新师数量" value={`${metrics.length}`} detail="当前表格有效记录" />
|
||||
<StatusCard label="平均进度" value={`${average}%`} detail="按当前表格计算" tone="blue" />
|
||||
<StatusCard label="最高进度" value={highest.label} detail={`${highest.value}%`} tone="amber" />
|
||||
</section>
|
||||
<section className="chart-panel">
|
||||
{metrics.map((item) => <div className="chart-row" key={item.label}>
|
||||
<span>{item.label}</span><div><i style={{ width: `${Math.max(3, item.value)}%` }} /></div><strong>{item.value}%</strong>
|
||||
</div>)}
|
||||
</section>
|
||||
</div>
|
||||
}
|
||||
|
||||
function ModuleLibrary({ modules }: { modules: ModuleEntry[] }) {
|
||||
const groups = [
|
||||
['foundation', '系统地基'], ['office', '办公通用'], ['education', '教育通用'],
|
||||
['xiaoxin-template', '小新师训模板'], ['persona-brain', '人格体脑区'],
|
||||
]
|
||||
return <div className="page-stack">
|
||||
<header className="page-intro"><p>GH-EDU-MODULE-REGISTRY-0001</p><h2>教育行业模块库</h2><span>{modules.length} 个地址已登记;状态明确区分真实、就绪、预登记和研究。</span></header>
|
||||
{groups.map(([id, label]) => <section className="module-group" key={id}>
|
||||
<header><h3>{label}</h3><span>{modules.filter((module) => module.group === id).length} 个</span></header>
|
||||
<div>{modules.filter((module) => module.group === id).map((module) =>
|
||||
<article key={module.id}><code>{module.id}</code><strong>{module.title}</strong>
|
||||
<span className={`module-state module-state--${module.state.toLowerCase()}`}>{module.state}</span>
|
||||
<small>{module.capabilities.join(' · ') || module.source}</small></article>)}</div>
|
||||
</section>)}
|
||||
</div>
|
||||
}
|
||||
|
||||
function BrainLibrary({ modules }: { modules: ModuleEntry[] }) {
|
||||
const brain = modules.filter((module) => module.group === 'persona-brain')
|
||||
return <div className="page-stack">
|
||||
<header className="page-intro"><p>GH-EDU-PERSONA-BRAIN-CANDIDATES</p><h2>人格体可寻找的大脑技能</h2>
|
||||
<span>这里登记“存在什么脑区、去哪里研究”,不会把外部 Agent 冒充成光湖人格体。</span></header>
|
||||
<section className="brain-grid">{brain.map((module, index) =>
|
||||
<article key={module.id}><b>{String(index + 1).padStart(2, '0')}</b><div><code>{module.id}</code><strong>{module.title}</strong><small>{module.source}</small></div><span>研究中</span></article>)}</section>
|
||||
</div>
|
||||
}
|
||||
|
||||
function Receipts({ receipts, snapshot }: { receipts: SaveReceipt[]; snapshot: ChannelSnapshot }) {
|
||||
return <div className="page-stack">
|
||||
<header className="page-intro"><p>GH-EDU-CORE-RECEIPT-001</p><h2>执行回执</h2><span>只有服务器返回且可以再次读取的结果,才进入这里。</span></header>
|
||||
<section className="receipt-list">
|
||||
<article><i /><div><strong>第五域协议接入</strong><code>{String(snapshot.fifthDomainLink.state ?? 'UNKNOWN')}</code><small>{String(snapshot.fifthDomainLink.observed_at ?? '')}</small></div></article>
|
||||
{receipts.map((receipt) => <article key={`${receipt.moduleId}-${receipt.writtenAt}`}><i /><div>
|
||||
<strong>{receipt.moduleId}</strong><code>{receipt.state}</code><small>{receipt.sha256} · {receipt.writtenAt}</small>
|
||||
</div></article>)}
|
||||
{receipts.length === 0 && <p>尚未在本次运行中写入文档或表格。</p>}
|
||||
</section>
|
||||
</div>
|
||||
}
|
||||
|
||||
function App() {
|
||||
const [snapshot, setSnapshot] = useState<ChannelSnapshot | null>(null)
|
||||
const [surface, setSurface] = useState<Surface>('channel')
|
||||
const [instruction, setInstruction] = useState('')
|
||||
const [route, setRoute] = useState<InstructionRoute | null>(null)
|
||||
const [document, setDocument] = useState(defaultDocument)
|
||||
const [sheet, setSheet] = useState(defaultSheet)
|
||||
const [receipts, setReceipts] = useState<SaveReceipt[]>([])
|
||||
const [connecting, setConnecting] = useState(false)
|
||||
const [saving, setSaving] = useState(false)
|
||||
const [error, setError] = useState('')
|
||||
const modules = useMemo(
|
||||
() => snapshot?.moduleRegistry.modules ?? bundledModules(),
|
||||
[snapshot],
|
||||
)
|
||||
|
||||
const connect = async () => {
|
||||
setConnecting(true)
|
||||
setError('')
|
||||
try {
|
||||
const [nextSnapshot, remoteDocument, remoteSheet] = await Promise.all([
|
||||
invoke<ChannelSnapshot>('connect_channel'),
|
||||
invoke<string>('read_channel_file', { kind: 'document' }),
|
||||
invoke<string>('read_channel_file', { kind: 'sheet' }),
|
||||
])
|
||||
setSnapshot(nextSnapshot)
|
||||
if (remoteDocument.trim()) setDocument(remoteDocument)
|
||||
if (remoteSheet.trim()) setSheet(remoteSheet)
|
||||
} catch (reason) {
|
||||
setError(`服务器入口未通过:${String(reason)}`)
|
||||
} finally {
|
||||
setConnecting(false)
|
||||
}
|
||||
}
|
||||
|
||||
const save = async (kind: 'document' | 'sheet') => {
|
||||
setSaving(true)
|
||||
setError('')
|
||||
try {
|
||||
const receipt = await invoke<SaveReceipt>('save_channel_file', {
|
||||
kind,
|
||||
content: kind === 'document' ? document : sheet,
|
||||
})
|
||||
setReceipts((current) => [receipt, ...current.filter((item) => item.moduleId !== receipt.moduleId)])
|
||||
setRoute({
|
||||
moduleId: receipt.moduleId,
|
||||
surface: kind,
|
||||
intent: '保存到个人服务器',
|
||||
state: 'LIVE_STAGE_1',
|
||||
at: receipt.writtenAt,
|
||||
})
|
||||
} catch (reason) {
|
||||
setError(`服务器写入失败:${String(reason)}`)
|
||||
} finally {
|
||||
setSaving(false)
|
||||
}
|
||||
}
|
||||
|
||||
const runInstruction = () => {
|
||||
const next = routeInstruction(instruction, modules)
|
||||
setRoute(next)
|
||||
setSurface(next.surface)
|
||||
}
|
||||
|
||||
if (!snapshot) return <LoginGate error={error} loading={connecting} onConnect={connect} />
|
||||
|
||||
return <main className="education-os">
|
||||
<aside className="side-rail">
|
||||
<div className="brand"><LakeMark /><span><strong>光湖分域 · 教育</strong><small>EDUCATION SUBDOMAIN OS</small></span></div>
|
||||
<nav>{navigation.map((item) => <button key={item.id} className={surface === item.id ? 'active' : ''} onClick={() => setSurface(item.id)}>
|
||||
<i>{item.mark}</i><span>{item.label}</span></button>)}</nav>
|
||||
<footer><span><i />XX-GZ-001 已连接</span><small>光湖单一更新通道</small></footer>
|
||||
</aside>
|
||||
<section className="main-workspace">
|
||||
<header className="topbar" data-tauri-drag-region>
|
||||
<div data-tauri-drag-region><small>当前频道</small><strong>小新 · 高中项目师训</strong></div>
|
||||
<div className="command-box">
|
||||
<input value={instruction} onChange={(event) => setInstruction(event.target.value)} onKeyDown={(event) => event.key === 'Enter' && runInstruction()} placeholder="说出要打开的真实能力,例如:整理三年规划文档" />
|
||||
<button onClick={runInstruction}>运行</button>
|
||||
</div>
|
||||
<div className="node-pill"><i />服务器在线</div>
|
||||
</header>
|
||||
{route && <div className="route-strip"><span>已定位</span><code>{route.moduleId}</code><b>{route.state}</b></div>}
|
||||
{error && <div className="workspace-error">{error}</div>}
|
||||
<div className="page">
|
||||
{surface === 'channel' && <ChannelHome snapshot={snapshot} modules={modules} />}
|
||||
{surface === 'document' && <ServerEditor kind="document" value={document} onChange={setDocument} onSave={() => save('document')} saving={saving} />}
|
||||
{surface === 'sheet' && <ServerEditor kind="sheet" value={sheet} onChange={setSheet} onSave={() => save('sheet')} saving={saving} />}
|
||||
{surface === 'dashboard' && <Dashboard sheet={sheet} />}
|
||||
{surface === 'modules' && <ModuleLibrary modules={modules} />}
|
||||
{surface === 'brain' && <BrainLibrary modules={modules} />}
|
||||
{surface === 'receipts' && <Receipts receipts={receipts} snapshot={snapshot} />}
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
}
|
||||
|
||||
export default App
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
import { bundledModules, parseSheetMetrics, routeInstruction } from './guanghuKernel'
|
||||
|
||||
describe('Guanghu Education Subdomain kernel', () => {
|
||||
it.each([
|
||||
['整理三年规划文档', 'document', 'GH-EDU-OFFICE-DOC-001'],
|
||||
['打开新教师数据表格', 'sheet', 'GH-EDU-OFFICE-SHEET-001'],
|
||||
['把数据做成对比仪表盘', 'dashboard', 'GH-EDU-OFFICE-DASH-001'],
|
||||
['看看人格大脑技能', 'brain', 'GH-EDU-BRAIN-INTENT-001'],
|
||||
])('routes %s to a registered module', (intent, surface, moduleId) => {
|
||||
expect(routeInstruction(intent, bundledModules())).toMatchObject({ surface, moduleId })
|
||||
})
|
||||
|
||||
it('keeps preregistration distinct from live execution', () => {
|
||||
const modules = bundledModules()
|
||||
expect(modules.some((module) => module.state === 'LIVE_STAGE_1')).toBe(true)
|
||||
expect(modules.some((module) => module.state === 'PRE_REGISTERED')).toBe(true)
|
||||
expect(modules.some((module) => module.state === 'RESEARCH_ONLY')).toBe(true)
|
||||
})
|
||||
|
||||
it('projects numeric sheet rows for a dashboard', () => {
|
||||
expect(parseSheetMetrics('教师,培养进度\n孙雨桐,72%\n周子航,65%')).toEqual([
|
||||
{ label: '孙雨桐', value: 72 },
|
||||
{ label: '周子航', value: 65 },
|
||||
])
|
||||
})
|
||||
})
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
import registry from '../../protocol/module-registry.json'
|
||||
|
||||
export type Surface = 'channel' | 'document' | 'sheet' | 'dashboard' | 'modules' | 'brain' | 'receipts'
|
||||
|
||||
export type ModuleState = 'LIVE_STAGE_1' | 'READY_STAGE_1' | 'PRE_REGISTERED' | 'RESEARCH_ONLY'
|
||||
|
||||
export type ModuleEntry = {
|
||||
id: string
|
||||
group: string
|
||||
surface: string
|
||||
title: string
|
||||
state: ModuleState
|
||||
capabilities: string[]
|
||||
source: string
|
||||
license?: string
|
||||
candidateParts?: string[]
|
||||
}
|
||||
|
||||
export type InstructionRoute = {
|
||||
moduleId: string
|
||||
surface: Surface
|
||||
intent: string
|
||||
state: ModuleState
|
||||
at: string
|
||||
}
|
||||
|
||||
const routes: Array<{ surface: Surface; moduleId: string; keywords: string[] }> = [
|
||||
{ surface: 'dashboard', moduleId: 'GH-EDU-OFFICE-DASH-001', keywords: ['仪表盘', '图表', '对比图', '看板', '分析'] },
|
||||
{ surface: 'document', moduleId: 'GH-EDU-OFFICE-DOC-001', keywords: ['文档', '方案', '总结', '报告', '教案', '规划'] },
|
||||
{ surface: 'sheet', moduleId: 'GH-EDU-OFFICE-SHEET-001', keywords: ['表格', '数据', '名单', 'csv', '统计'] },
|
||||
{ surface: 'brain', moduleId: 'GH-EDU-BRAIN-INTENT-001', keywords: ['人格', '大脑', 'agent', '技能'] },
|
||||
{ surface: 'modules', moduleId: 'GH-EDU-CORE-LIGHTHOUSE-001', keywords: ['模块', '零件', '能力', '灯塔'] },
|
||||
{ surface: 'receipts', moduleId: 'GH-EDU-CORE-RECEIPT-001', keywords: ['回执', '证据', '验证'] },
|
||||
{ surface: 'channel', moduleId: 'GH-EDU-CORE-CHANNEL-001', keywords: ['频道', '小新', '首页', '师训'] },
|
||||
]
|
||||
|
||||
export function routeInstruction(intent: string, modules: ModuleEntry[]): InstructionRoute {
|
||||
const normalized = intent.trim().toLocaleLowerCase()
|
||||
const route = routes.find((candidate) =>
|
||||
candidate.keywords.some((keyword) => normalized.includes(keyword)),
|
||||
) ?? routes[routes.length - 1]
|
||||
const module = modules.find((candidate) => candidate.id === route.moduleId)
|
||||
if (!module) throw new Error(`UNREGISTERED_MODULE:${route.moduleId}`)
|
||||
return {
|
||||
moduleId: module.id,
|
||||
surface: route.surface,
|
||||
intent,
|
||||
state: module.state,
|
||||
at: new Date().toISOString(),
|
||||
}
|
||||
}
|
||||
|
||||
export function bundledModules(): ModuleEntry[] {
|
||||
return registry.modules as ModuleEntry[]
|
||||
}
|
||||
|
||||
export function parseSheetMetrics(content: string): Array<{ label: string; value: number }> {
|
||||
return content
|
||||
.trim()
|
||||
.split(/\r?\n/)
|
||||
.slice(1)
|
||||
.map((row) => {
|
||||
const [label = '', rawValue = ''] = row.split(',')
|
||||
return { label: label.trim(), value: Number(rawValue.replace('%', '').trim()) }
|
||||
})
|
||||
.filter((item) => item.label.length > 0 && Number.isFinite(item.value))
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import App from './App'
|
||||
import './styles.css'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(<StrictMode><App /></StrictMode>)
|
||||
157
product-source/guanghu-education-industry-os/src/styles.css
Normal file
157
product-source/guanghu-education-industry-os/src/styles.css
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
:root {
|
||||
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
color: #dce9f3;
|
||||
background: #050c14;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-width: 900px; min-height: 100vh; overflow: hidden; }
|
||||
button, input, textarea { font: inherit; }
|
||||
button { color: inherit; }
|
||||
|
||||
.login-gate {
|
||||
display: grid;
|
||||
min-height: 100vh;
|
||||
place-items: center;
|
||||
background:
|
||||
radial-gradient(circle at 50% 12%, rgba(45, 121, 174, .18), transparent 38%),
|
||||
radial-gradient(ellipse at 50% 110%, rgba(28, 119, 163, .28), transparent 42%),
|
||||
#050c14;
|
||||
}
|
||||
.login-window {
|
||||
position: relative;
|
||||
width: min(620px, calc(100vw - 80px));
|
||||
padding: 58px 56px 38px;
|
||||
border: 1px solid rgba(103, 161, 202, .25);
|
||||
border-radius: 18px;
|
||||
background: linear-gradient(180deg, rgba(8, 20, 32, .96), rgba(5, 15, 25, .94));
|
||||
box-shadow: 0 30px 90px rgba(0, 0, 0, .38), inset 0 1px rgba(255,255,255,.025);
|
||||
text-align: center;
|
||||
}
|
||||
.window-drag { position: absolute; inset: 0 0 auto; height: 42px; border-radius: 18px 18px 0 0; }
|
||||
.login-window > .lake-mark { width: 58px; height: 58px; margin-bottom: 18px; transform: scale(1.65); }
|
||||
.login-window > p { margin: 0 0 8px; color: #6ec2f4; font-size: 12px; letter-spacing: .18em; }
|
||||
.login-window h1 { margin: 0; color: #f0f7fc; font-size: 31px; font-weight: 650; letter-spacing: -.03em; }
|
||||
.login-window > span { display: block; margin: 13px auto 30px; color: #7790a3; font-size: 13px; }
|
||||
.server-entry {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
grid-template-columns: 13px 1fr auto;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 18px 20px;
|
||||
border: 1px solid rgba(86, 178, 239, .5);
|
||||
border-radius: 10px;
|
||||
color: #dff3ff;
|
||||
background: linear-gradient(90deg, rgba(37, 115, 170, .2), rgba(23, 76, 116, .12));
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
.server-entry:hover { border-color: #5fc5ff; background: rgba(43, 128, 184, .2); }
|
||||
.server-entry:disabled { cursor: wait; opacity: .68; }
|
||||
.server-entry > i { width: 8px; height: 8px; border-radius: 50%; background: #46d2b8; box-shadow: 0 0 12px #46d2b8; }
|
||||
.server-entry span { display: grid; gap: 5px; }.server-entry strong { font-size: 15px; }.server-entry small { color: #6f8ca1; font-size: 10px; }
|
||||
.server-entry > b { color: #76caff; font-size: 22px; font-weight: 400; }
|
||||
.reserved-logins { display: flex; align-items: center; gap: 7px; margin-top: 22px; }
|
||||
.reserved-logins > span { margin-right: auto; color: #577084; font-size: 10px; }
|
||||
.reserved-logins button { padding: 6px 9px; border: 1px solid rgba(99, 137, 164, .15); border-radius: 5px; color: #4b6478; background: rgba(10, 27, 41, .45); font-size: 9px; }
|
||||
.login-window footer { margin-top: 28px; color: #4d697d; font-size: 10px; }
|
||||
.login-window footer i { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #3dbfa9; }
|
||||
.login-error, .workspace-error { margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(229, 95, 104, .25); color: #e78d94; background: rgba(120, 30, 38, .12); font-size: 10px; text-align: left; }
|
||||
|
||||
.education-os {
|
||||
--line: rgba(118, 161, 191, .17);
|
||||
--muted: #6d8496;
|
||||
--blue: #5ab4f5;
|
||||
--aqua: #43d0b9;
|
||||
display: grid;
|
||||
grid-template-columns: 224px minmax(0, 1fr);
|
||||
height: 100vh;
|
||||
background: radial-gradient(circle at 74% -20%, rgba(47, 111, 157, .17), transparent 42%), #06101a;
|
||||
}
|
||||
.side-rail {
|
||||
position: relative;
|
||||
display: flex;
|
||||
min-height: 0;
|
||||
flex-direction: column;
|
||||
padding: 24px 12px 16px;
|
||||
border-right: 1px solid var(--line);
|
||||
overflow: hidden;
|
||||
background: linear-gradient(180deg, #07111d 0%, #06111e 68%, #08243c 100%);
|
||||
}
|
||||
.side-rail::after {
|
||||
position: absolute; inset: auto -25% 0; height: 28%; content: "";
|
||||
pointer-events: none;
|
||||
background: radial-gradient(ellipse at 50% 100%, rgba(42, 156, 210, .32), transparent 58%);
|
||||
}
|
||||
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; min-height: 60px; padding: 0 10px 17px; border-bottom: 1px solid var(--line); }
|
||||
.brand > span { display: grid; gap: 4px; }.brand strong { color: #e7f1f8; font-size: 15px; }.brand small { color: #526d83; font-size: 8px; letter-spacing: .09em; }
|
||||
.lake-mark { position: relative; display: inline-block; width: 32px; height: 32px; flex: 0 0 32px; }
|
||||
.lake-mark::before, .lake-mark::after { position: absolute; left: 3px; right: 3px; top: 15px; height: 1px; border-radius: 50%; content: ""; background: #5bdfff; box-shadow: 0 0 12px #4ec9ff; transform: rotate(-12deg); }
|
||||
.lake-mark::after { transform: rotate(12deg); }.lake-mark i { position: absolute; left: 14px; top: 5px; width: 3px; height: 22px; background: linear-gradient(transparent, #fff, transparent); box-shadow: 0 0 10px #69e8ff; }
|
||||
.lake-mark b { position: absolute; left: 8px; top: 10px; width: 16px; height: 12px; border: 1px solid #549cf4; border-radius: 50%; transform: rotate(-18deg); }
|
||||
.side-rail nav { position: relative; z-index: 1; display: grid; gap: 4px; margin-top: 18px; }
|
||||
.side-rail nav button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 0 11px; border: 0; border-radius: 6px; color: #8197a8; background: transparent; cursor: pointer; text-align: left; font-size: 12px; }
|
||||
.side-rail nav button:hover { color: #d7ebf8; background: rgba(80, 147, 196, .08); }
|
||||
.side-rail nav button.active { color: #78c6fa; background: linear-gradient(90deg, rgba(61, 148, 212, .2), rgba(61, 148, 212, .04)); box-shadow: inset 2px 0 #4aa8f0; }
|
||||
.side-rail nav i { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(111, 154, 185, .25); border-radius: 6px; font-size: 10px; font-style: normal; }
|
||||
.side-rail footer { position: relative; z-index: 1; display: grid; gap: 6px; margin-top: auto; padding: 12px 10px 2px; color: #607a8d; font-size: 9px; }
|
||||
.side-rail footer span { color: #89a4b7; }.side-rail footer i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #45cfb7; box-shadow: 0 0 8px #45cfb7; }
|
||||
|
||||
.main-workspace { display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; }
|
||||
.topbar { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(420px, 1.45fr) auto; align-items: center; gap: 24px; min-height: 86px; padding: 16px 24px 12px 28px; border-bottom: 1px solid var(--line); background: rgba(5, 14, 23, .74); }
|
||||
.topbar > div:first-child { display: grid; gap: 3px; }.topbar small { color: #526c80; font-size: 9px; }.topbar strong { color: #e4eff7; font-size: 15px; }
|
||||
.command-box { display: grid; grid-template-columns: 1fr auto; height: 43px; border: 1px solid rgba(84, 142, 183, .32); border-radius: 7px; overflow: hidden; background: #0a1927; }
|
||||
.command-box input { min-width: 0; padding: 0 14px; border: 0; outline: 0; color: #d8e7f2; background: transparent; font-size: 11px; }
|
||||
.command-box input::placeholder { color: #4f687b; }.command-box button { padding: 0 16px; border: 0; border-left: 1px solid rgba(84,142,183,.2); color: #75bff1; background: rgba(62, 133, 185, .08); cursor: pointer; font-size: 10px; }
|
||||
.node-pill { padding: 8px 10px; border: 1px solid rgba(66, 197, 174, .2); border-radius: 6px; color: #78aa9f; background: rgba(38, 126, 112, .08); font-size: 9px; }
|
||||
.node-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #47d0b7; }
|
||||
.route-strip { display: flex; min-height: 32px; align-items: center; gap: 11px; padding: 5px 28px; border-bottom: 1px solid rgba(59, 190, 167, .15); color: #6f948b; background: rgba(29, 106, 94, .07); font-size: 9px; }
|
||||
.route-strip code { color: #48cbb4; }.route-strip b { margin-left: auto; color: #54786f; font-weight: 500; }
|
||||
.workspace-error { margin: 0; border-width: 0 0 1px; }
|
||||
.page { min-height: 0; flex: 1; overflow: auto; padding: 25px 28px 36px; }
|
||||
.page-stack { display: grid; gap: 16px; max-width: 1250px; margin: 0 auto; }
|
||||
.page-intro { padding: 2px 2px 9px; }.page-intro p, .editor-page header p { margin: 0 0 7px; color: #4aa9e8; font-size: 9px; letter-spacing: .08em; }
|
||||
.page-intro h2, .editor-page h2 { margin: 0; color: #edf5fa; font-size: 25px; font-weight: 650; letter-spacing: -.025em; }
|
||||
.page-intro span, .editor-page header span { display: block; margin-top: 7px; color: #6c8395; font-size: 11px; }
|
||||
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
|
||||
.status-card { display: grid; gap: 7px; min-height: 112px; padding: 15px 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 27, 42, .9), rgba(7, 21, 33, .9)); }
|
||||
.status-card span { color: #71899b; font-size: 9px; }.status-card strong { color: #62d0bc; font-size: 20px; }.status-card small { color: #526b7f; font-size: 8px; }
|
||||
.status-card--blue strong { color: #64b8ef; }.status-card--amber strong { color: #d5b463; }
|
||||
.work-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
|
||||
.work-panel, .chart-panel, .module-group, .brain-grid, .receipt-list { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 27, 42, .9), rgba(7, 20, 32, .92)); }
|
||||
.work-panel > header, .module-group > header { display: flex; min-height: 45px; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid var(--line); }
|
||||
.work-panel h3, .module-group h3 { margin: 0; color: #d9e7f0; font-size: 12px; }.work-panel header span, .module-group header span { color: #5b7487; font-size: 8px; }
|
||||
.work-panel ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }.work-panel li { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 10px 15px; border-bottom: 1px solid rgba(118,161,191,.1); }
|
||||
.work-panel li > b { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(79, 167, 226, .3); border-radius: 6px; color: #5aaee6; font-size: 8px; }
|
||||
.work-panel li span { display: grid; gap: 4px; }.work-panel li strong { color: #afc2cf; font-size: 10px; }.work-panel li small { color: #587184; font-size: 8px; }
|
||||
.rule-list { display: grid; padding: 10px 16px; }.rule-list p { color: #7d94a5; font-size: 10px; }.rule-list i { display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: #44cdb5; }
|
||||
|
||||
.editor-page { display: flex; max-width: 1250px; min-height: calc(100vh - 150px); margin: 0 auto; flex-direction: column; border: 1px solid var(--line); background: rgba(7, 20, 32, .9); }
|
||||
.editor-page > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
|
||||
.editor-page h2 { font-size: 21px; }.editor-page header button { min-height: 34px; padding: 0 14px; border: 1px solid rgba(64, 198, 174, .48); border-radius: 5px; color: #c9f4eb; background: rgba(38, 142, 124, .15); cursor: pointer; font-size: 10px; }
|
||||
.editor-page header button:disabled { opacity: .6; cursor: wait; }
|
||||
.editor-page textarea { min-height: 0; flex: 1; padding: 28px 32px; border: 0; outline: 0; resize: none; color: #becfdc; background: rgba(4, 13, 21, .34); font: 13px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
|
||||
.chart-panel { display: grid; gap: 15px; padding: 24px; }.chart-row { display: grid; grid-template-columns: 88px 1fr 48px; align-items: center; gap: 12px; }
|
||||
.chart-row > span, .chart-row > strong { color: #849aab; font-size: 10px; }.chart-row > strong { color: #a9c0cf; text-align: right; }
|
||||
.chart-row > div { height: 9px; border-radius: 5px; overflow: hidden; background: #102738; }.chart-row i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #399bcf, #46d0b8); }
|
||||
.module-group > div { display: grid; grid-template-columns: repeat(3, 1fr); }
|
||||
.module-group article { position: relative; display: grid; min-height: 105px; gap: 7px; padding: 14px; border-right: 1px solid rgba(118,161,191,.1); border-bottom: 1px solid rgba(118,161,191,.1); }
|
||||
.module-group article code { color: #4e94bf; font-size: 7px; }.module-group article strong { color: #b6c8d4; font-size: 10px; }.module-group article small { color: #526c7f; font-size: 7px; }
|
||||
.module-state { width: fit-content; padding: 3px 5px; border-radius: 3px; color: #6ea494; background: rgba(49, 145, 123, .1); font-size: 6px; }
|
||||
.module-state--pre_registered { color: #ad955e; background: rgba(165, 125, 48, .1); }.module-state--research_only { color: #8878a2; background: rgba(104, 75, 143, .12); }
|
||||
.brain-grid { display: grid; grid-template-columns: 1fr 1fr; }.brain-grid article { display: flex; min-height: 86px; align-items: center; gap: 13px; padding: 14px; border-right: 1px solid rgba(118,161,191,.1); border-bottom: 1px solid rgba(118,161,191,.1); }
|
||||
.brain-grid article > b { color: #355f7a; font: 17px ui-monospace, monospace; }.brain-grid article > div { display: grid; flex: 1; gap: 4px; }.brain-grid code { color: #4d8bb5; font-size: 7px; }.brain-grid strong { color: #b3c5d1; font-size: 10px; }.brain-grid small { color: #526a7c; font-size: 7px; }.brain-grid article > span { color: #897a9e; font-size: 7px; }
|
||||
.receipt-list { display: grid; }.receipt-list article { display: flex; min-height: 68px; align-items: center; gap: 13px; padding: 12px 16px; border-bottom: 1px solid rgba(118,161,191,.1); }
|
||||
.receipt-list article > i { width: 7px; height: 7px; border-radius: 50%; background: #44cdb4; box-shadow: 0 0 8px #44cdb4; }.receipt-list article > div { display: grid; flex: 1; grid-template-columns: 1fr auto; gap: 5px 20px; }
|
||||
.receipt-list strong { color: #b4c6d2; font-size: 10px; }.receipt-list code { color: #45c9b1; font-size: 8px; }.receipt-list small { grid-column: 1 / -1; color: #526a7c; font-size: 7px; }.receipt-list > p { padding: 20px; color: #586f82; font-size: 9px; }
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.education-os { grid-template-columns: 190px minmax(0, 1fr); }
|
||||
.topbar { grid-template-columns: 170px minmax(350px, 1fr); }
|
||||
.node-pill { display: none; }
|
||||
.status-grid { grid-template-columns: 1fr 1fr; }
|
||||
.module-group > div { grid-template-columns: 1fr 1fr; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
|
||||
Loading…
Reference in a new issue