191 lines
18 KiB
CSS
Raw Normal View History

/* App layout - minimal CSS, most styling via Tailwind */
.app-shell {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
overflow: hidden;
background: var(--surface-app);
box-shadow: inset 0 0 0 1px var(--border-primary);
}
2026-07-15 14:53:18 +08:00
.hololake-bar { height: 52px; flex: 0 0 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: var(--text-primary); background: var(--surface-panel); border-bottom: 1px solid var(--border-default); letter-spacing: .02em; }
2026-07-13 23:33:23 +08:00
.hololake-bar__brand, .hololake-bar__library { border: 0; background: transparent; color: inherit; cursor: pointer; }
.hololake-bar__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.hololake-bar__brand b { color: var(--accent-blue); font-weight: 600; }
.hololake-bar__mark { display: block; width: 24px; height: 28px; object-fit: contain; object-position: center; flex: 0 0 24px; }
.hololake-bar__line { width: 1px; height: 16px; background: var(--border-default); }
.hololake-bar__context { color: var(--text-secondary); font-size: 12px; }
.hololake-bar__library { margin-left: auto; padding: 5px 9px; border: 1px solid var(--border-default); border-radius: 6px; color: var(--text-secondary); font-size: 12px; }
.hololake-bar__library:hover { background: var(--state-hover-subtle); color: var(--text-primary); }
.hololake-bar__theme { padding: 5px 9px; border: 1px solid var(--border-default); border-radius: 6px; background: transparent; color: var(--text-secondary); font-size: 12px; cursor: pointer; }
.hololake-bar__theme:hover { background: var(--state-hover-subtle); color: var(--text-primary); }
2026-07-18 18:25:32 +08:00
.channel-dock { display: flex; width: 58px; flex: 0 0 58px; flex-direction: column; align-items: center; gap: 8px; padding: 10px 7px; border-right: 1px solid var(--border-default); background: color-mix(in srgb, var(--surface-sidebar) 92%, var(--accent-blue)); }
.channel-dock button { display: grid; width: 44px; min-height: 48px; place-items: center; gap: 2px; padding: 5px 2px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-secondary); cursor: pointer; }.channel-dock button:hover, .channel-dock button[data-active="true"] { border-color: var(--border-default); background: var(--state-selected); color: var(--text-primary); }.channel-dock button:disabled { opacity: .45; cursor: default; }.channel-dock span { font-family: Georgia, serif; font-size: 16px; }.channel-dock small { font-size: 9px; }
2026-07-15 14:53:18 +08:00
/* Tauri's macOS traffic lights are overlaid on the title bar. Keep the
product mark and title in a separate, stable lane so they never collide. */
body.mac-chrome .hololake-bar { padding-left: 92px; }
.team-foundation { min-height: 100vh; padding: clamp(24px, 5vw, 72px); color: var(--text-primary); background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--accent-blue) 16%, transparent), transparent 32%), var(--surface-app); }
.team-foundation__header, .team-foundation__footer { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 11px; letter-spacing: .12em; }.team-foundation__header strong { color: var(--text-primary); font-size: 16px; letter-spacing: 0; }
.team-foundation__intro { max-width: 760px; padding: clamp(64px, 12vw, 150px) 0 54px; }.team-foundation__intro > p:first-child { color: var(--accent-blue); font: 11px/1.4 monospace; letter-spacing: .12em; }.team-foundation__intro h1 { margin: 12px 0 20px; font: 500 clamp(48px, 9vw, 112px)/.95 serif; }.team-foundation__intro p:last-child { max-width: 650px; color: var(--text-secondary); font-size: 16px; line-height: 1.8; }
.team-foundation__route { display: grid; max-width: 980px; margin: 0; padding: 0; border-top: 1px solid var(--border-default); list-style: none; }.team-foundation__route li { display: grid; grid-template-columns: 56px 1fr; align-items: center; min-height: 82px; border-bottom: 1px solid var(--border-default); }.team-foundation__route li > span { color: var(--text-muted); font: 11px monospace; }.team-foundation__route div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }.team-foundation__route code { color: var(--accent-blue); font-size: 11px; }.team-foundation__route strong { font-size: clamp(16px, 2vw, 24px); font-weight: 500; }.team-foundation__footer { margin-top: 48px; }
2026-07-15 14:53:18 +08:00
.hololake-bar__brand { min-width: max-content; white-space: nowrap; }
.hololake-bar__context { white-space: nowrap; }
2026-07-18 18:25:32 +08:00
.hololake-home { position: relative; z-index: 2; display: flex; width: 100%; min-width: 0; overflow: hidden; color: var(--text-primary); background: var(--surface-app); }
.channel-workspace { min-width: 0; flex: 1; overflow: auto; padding: clamp(28px, 5vw, 64px); }
.channel-rail { display: flex; width: 236px; flex: 0 0 236px; flex-direction: column; gap: 22px; overflow-y: auto; padding: 22px 14px; border-right: 1px solid var(--border-default); background: color-mix(in srgb, var(--surface-sidebar) 94%, var(--accent-blue)); }
.channel-rail__heading { display: grid; gap: 5px; padding: 4px 10px 14px; border-bottom: 1px solid var(--border-default); }
.channel-rail__heading span { color: var(--accent-blue); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.channel-rail__heading strong { font-size: 17px; }.channel-rail__heading small { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.channel-rail nav { display: grid; gap: 4px; }
.channel-rail nav button { justify-content: flex-start; width: 100%; height: 36px; padding-inline: 10px; color: var(--text-secondary); }
.channel-rail nav button[data-active="true"] { background: var(--state-selected); color: var(--text-primary); }
.channel-rail nav i { width: 8px; height: 8px; border-radius: 999px; background: var(--tag-color); box-shadow: 0 0 10px color-mix(in srgb, var(--tag-color) 55%, transparent); }
.channel-rail nav i[data-color="cyan"] { --tag-color: #4fd1c5; }.channel-rail nav i[data-color="blue"] { --tag-color: #60a5fa; }.channel-rail nav i[data-color="violet"] { --tag-color: #a78bfa; }.channel-rail nav i[data-color="amber"] { --tag-color: #fbbf24; }.channel-rail nav i[data-color="rose"] { --tag-color: #fb7185; }.channel-rail nav i[data-color="pink"] { --tag-color: #f472b6; }.channel-rail nav i[data-color="green"] { --tag-color: #4ade80; }
.channel-rail__modules { display: grid; gap: 8px; margin-top: auto; padding: 14px 10px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--surface-card); }
.channel-rail__modules span { color: var(--text-muted); font-size: 10px; letter-spacing: .12em; }.channel-rail__modules b { font-size: 12px; font-weight: 550; }
.channel-mobile-nav { display: none; }
2026-07-13 23:33:23 +08:00
.hololake-home__hero { position: relative; max-width: 740px; padding: 24px 0 56px; overflow: hidden; }
.hololake-home__halo { position: absolute; right: -80px; top: -140px; width: 300px; aspect-ratio: 1; border: 1px solid var(--border-default); border-radius: 50%; opacity: .45; }
.hololake-home__eyebrow, .hololake-home__section-head span { color: var(--accent-blue); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
2026-07-13 23:33:23 +08:00
.hololake-home h1 { position: relative; margin: 18px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(52px, 7vw, 92px); font-weight: 500; line-height: .95; letter-spacing: -.06em; }
.hololake-home h1 em { color: #9cc7ff; font-style: italic; font-weight: 400; }
.hololake-home__lead { margin: 20px 0 0; font-size: 18px; letter-spacing: .16em; }
.hololake-home__copy { max-width: 560px; margin: 16px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
2026-07-13 23:33:23 +08:00
.hololake-home__actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.hololake-home__primary { padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--accent-blue); color: var(--text-inverse); font-weight: 650; cursor: pointer; }
2026-07-13 23:33:23 +08:00
.hololake-home__primary span, .hololake-module button span { margin-left: 12px; }
.hololake-home__status { color: var(--text-secondary); font-size: 12px; }.hololake-home__status i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent-green); }
.hololake-home__signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hololake-home__module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hololake-home__signal-grid article, .hololake-module { border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface-card); }
.hololake-home__signal-grid article { padding: 18px; }.hololake-home__signal-grid span, .hololake-home__signal-grid small { display: block; color: var(--text-secondary); font-size: 11px; }.hololake-home__signal-grid strong { display: block; margin: 10px 0 6px; font-size: 15px; }
.hololake-home__modules { margin-top: 44px; }.hololake-home__section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }.hololake-home__section-head p { margin: 0; color: var(--text-secondary); font-size: 13px; }
.hololake-module { min-height: 185px; padding: 20px; display: flex; flex-direction: column; }.hololake-module__number { color: var(--accent-blue); font-family: monospace; font-size: 12px; }.hololake-module h2 { margin: auto 0 8px; font-size: 20px; font-weight: 600; }.hololake-module p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }.hololake-module button { margin-top: 19px; padding: 0; border: 0; color: var(--accent-blue); background: transparent; text-align: left; font: inherit; cursor: pointer; }.hololake-module__soon { margin-top: 19px; color: var(--text-muted); font-size: 12px; }
.channel-breadcrumb { display: flex; align-items: center; min-height: 34px; margin-bottom: 34px; color: var(--text-muted); }
.channel-breadcrumb button { padding-inline: 8px; color: var(--text-secondary); }
.channel-breadcrumb span { color: var(--border-strong); }
.channel-stage { width: min(1080px, 100%); margin: 0 auto; animation: channel-stage-in .24s ease-out; }
.channel-stage--root { display: flex; min-height: min(620px, calc(100vh - 210px)); flex-direction: column; align-items: flex-start; justify-content: center; }
.channel-stage__eyebrow, .channel-card__eyebrow { color: var(--accent-blue); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.channel-stage h1 { max-width: 820px; margin: 12px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 6vw, 78px); font-weight: 500; line-height: 1; letter-spacing: -.055em; }
.channel-stage__lead { max-width: 720px; margin: 22px 0 34px; color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
.channel-stage--root .hololake-home__primary { margin-top: 8px; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.channel-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.channel-card { display: flex; min-height: 230px; flex-direction: column; padding: 24px; border: 1px solid var(--border-default); border-radius: 12px; background: linear-gradient(145deg, var(--surface-card), color-mix(in srgb, var(--surface-card) 92%, var(--accent-blue))); box-shadow: 0 8px 28px color-mix(in srgb, #000 7%, transparent); }
.channel-card h2 { margin: auto 0 10px; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.channel-card p { min-height: 46px; margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.channel-card button { align-self: flex-start; margin-top: 20px; padding: 0; color: var(--accent-blue); }
.channel-card__status { margin-top: 20px; color: var(--text-muted); font-size: 12px; }
.channel-stage__tools { display: flex; gap: 10px; margin-top: 18px; }
2026-07-18 18:25:32 +08:00
.server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.server-card { padding: 20px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--surface-card); }
.server-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.server-card__head code { color: var(--accent-blue); font-size: 11px; }.server-card__head span { padding: 3px 7px; border-radius: 999px; background: var(--surface-panel); color: var(--text-muted); font-size: 10px; }.server-card__head span[data-tone="online"] { background: color-mix(in srgb, var(--accent-green) 18%, transparent); color: var(--accent-green); }
.server-card h2 { margin: 28px 0 6px; font-size: 18px; }.server-card > p { margin: 0 0 22px; color: var(--text-secondary); font-size: 12px; }.server-card dl { display: grid; gap: 8px; margin: 0 0 20px; }.server-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }.server-card dt { color: var(--text-muted); }.server-card dd { margin: 0; color: var(--text-secondary); }.server-card button { width: 100%; font-size: 11px; }
.persona-route-list { display: grid; gap: 12px; max-width: 820px; margin: 0; padding: 0; list-style: none; }
.persona-route-list li { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--surface-card); }
.persona-route-list code { color: var(--accent-blue); font-size: 11px; }
.persona-route-list strong { font-size: 15px; }
.persona-route-list span { color: var(--text-muted); }
@keyframes channel-stage-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.guanghu-architecture { max-width: min(760px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); overflow: auto; background: var(--surface-card); color: var(--text-primary); }
.guanghu-architecture__routes { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.guanghu-architecture__routes li { display: grid; grid-template-columns: minmax(128px, auto) 1fr; gap: 16px; padding: 14px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface-app); }
.guanghu-architecture__routes code { align-self: start; color: var(--accent-blue); font-size: 11px; }
.guanghu-architecture__routes strong { font-size: 14px; }.guanghu-architecture__routes p { margin: 5px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.guanghu-architecture__route { overflow-x: auto; margin: 2px 0 0; padding: 12px; border-radius: 6px; color: var(--text-secondary); background: var(--surface-app); font: 11px/1.6 monospace; white-space: nowrap; }
2026-07-18 18:25:32 +08:00
@media (max-width: 1000px) { .server-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .channel-grid--three { grid-template-columns: 1fr; }.channel-card { min-height: 190px; }.channel-rail { width: 190px; flex-basis: 190px; } }
@media (max-width: 780px) {
.hololake-bar { height: calc(52px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); padding-inline: 16px 12px; }
.hololake-bar__brand { font-size: 15px; }.hololake-bar__context { display: none; }.hololake-bar__theme { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app { min-height: 0; }
.hololake-home__signal-grid, .hololake-home__module-grid, .channel-grid { grid-template-columns: 1fr; }
.hololake-home { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.channel-workspace { padding: 20px 18px 32px; }.channel-rail { display: none; }.channel-breadcrumb { margin-bottom: 18px; overflow-x: auto; }.channel-stage h1 { font-size: clamp(38px, 12vw, 52px); }.channel-stage__lead { margin: 16px 0 24px; }.channel-stage--root { min-height: calc(100dvh - 190px); }.channel-card { min-height: 180px; padding: 20px; }.channel-grid--three { grid-template-columns: 1fr; }.server-grid { grid-template-columns: 1fr; }
.channel-mobile-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-default); background: color-mix(in srgb, var(--surface-sidebar) 92%, transparent); backdrop-filter: blur(18px); }
.channel-mobile-nav button { display: grid; height: 48px; min-width: 0; place-items: center; gap: 0; padding: 2px; color: var(--text-muted); }.channel-mobile-nav button[data-active="true"] { color: var(--accent-blue); }.channel-mobile-nav span { font-size: 18px; line-height: 1; }.channel-mobile-nav small { font-size: 9px; }
.channel-dock { width: 48px; flex-basis: 48px; padding-inline: 4px; }.channel-dock button { width: 40px; }
}
2026-07-15 14:53:18 +08:00
@media (max-width: 700px) { body.mac-chrome .hololake-bar { padding-left: 84px; }.hololake-bar__line { display: none; } }
2026-07-13 23:33:23 +08:00
.app {
display: flex;
flex: 1;
min-height: 0;
overflow: hidden;
}
.app__sidebar {
flex: 0 0 auto;
min-width: 220px;
display: flex;
flex-direction: column;
background: var(--surface-sidebar);
}
.app__sidebar > * {
flex: 1;
}
.app:has(.app__note-list) .app__sidebar > * {
border-right-color: transparent;
}
.app__note-list {
flex: 0 0 auto;
min-width: 220px;
display: flex;
flex-direction: column;
position: relative;
z-index: 20;
background: var(--surface-sidebar);
}
.app__note-list > * {
flex: 1;
border-left: 1px solid var(--sidebar-border);
}
.app__editor {
flex: 1;
min-width: 480px;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
container-type: inline-size;
container-name: editor;
background: var(--surface-editor);
}
.app__editor > * {
flex: 1;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes tab-status-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
.tab-status-pulse {
animation: tab-status-pulse 1.2s ease-in-out infinite;
}
/* AI highlight animation — applied by useAiActivity when MCP calls ui_highlight */
@keyframes ai-highlight-glow {
0% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent-blue) 80%, transparent); }
50% { box-shadow: inset 0 0 8px 2px color-mix(in srgb, var(--accent-blue) 40%, transparent); }
100% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent-blue) 0%, transparent); }
}
.ai-highlight {
animation: ai-highlight-glow 0.8s ease-out;
}