1705 lines
64 KiB
CSS
1705 lines
64 KiB
CSS
/* ============================================================
|
||
魂镜 Hunjing · 界面静态原型 v0.1
|
||
设计语言:墨 / 月白双主题 · 铜镜青主色 · 朱砂朱批色 · 双层文字系统
|
||
============================================================ */
|
||
|
||
/* ---------- 设计令牌 ---------- */
|
||
:root {
|
||
/* 墨色主题(默认) */
|
||
--bg: #14181c;
|
||
--bg-sunken: #0f1316;
|
||
--bg-raised: #1b2126;
|
||
--bg-overlay: #212930;
|
||
--line: #2b333b;
|
||
--line-soft: #232b31;
|
||
--text-1: #e9e7e2;
|
||
--text-2: #a7aeb4;
|
||
--text-3: #6d777f;
|
||
--accent: #58a99c; /* 铜镜青 */
|
||
--accent-strong: #74c4b6;
|
||
--accent-soft: rgba(88, 169, 156, 0.13);
|
||
--cinnabar: #c4574a; /* 朱砂 · 朱批专用 */
|
||
--cinnabar-strong: #d26a5d;
|
||
--cinnabar-soft: rgba(196, 87, 74, 0.14);
|
||
--ok: #8ab872; /* 已成 */
|
||
--warn: #c9a227; /* 整备 · 秋香 */
|
||
--err: #d26a5d; /* 受阻 */
|
||
--muted: #79838b; /* 守一 / 已止 */
|
||
--shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
|
||
--shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.25);
|
||
|
||
--font-ui: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
|
||
--font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
|
||
--font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
|
||
|
||
--radius: 10px;
|
||
--radius-sm: 7px;
|
||
--radius-lg: 14px;
|
||
--side-w: 224px;
|
||
}
|
||
|
||
[data-theme="light"] {
|
||
--bg: #f1f2ef;
|
||
--bg-sunken: #e6e8e4;
|
||
--bg-raised: #fafaf8;
|
||
--bg-overlay: #ffffff;
|
||
--line: #d6dad3;
|
||
--line-soft: #e2e5df;
|
||
--text-1: #262b2e;
|
||
--text-2: #5c6569;
|
||
--text-3: #8b9497;
|
||
--accent: #2f7a6f;
|
||
--accent-strong: #22615a;
|
||
--accent-soft: rgba(47, 122, 111, 0.1);
|
||
--cinnabar: #ac4632;
|
||
--cinnabar-strong: #963a28;
|
||
--cinnabar-soft: rgba(172, 70, 50, 0.1);
|
||
--ok: #4e7e3b;
|
||
--warn: #8f7414;
|
||
--err: #ac4632;
|
||
--muted: #848d90;
|
||
--shadow: 0 10px 28px rgba(42, 52, 47, 0.12);
|
||
--shadow-soft: 0 4px 14px rgba(42, 52, 47, 0.08);
|
||
}
|
||
|
||
/* ---------- 基础 ---------- */
|
||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||
|
||
html { height: 100%; }
|
||
|
||
body {
|
||
min-height: 100%;
|
||
background: var(--bg);
|
||
color: var(--text-1);
|
||
font-family: var(--font-ui);
|
||
font-size: 14px;
|
||
line-height: 1.65;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
|
||
a { color: var(--accent); text-decoration: none; }
|
||
a:hover { color: var(--accent-strong); }
|
||
|
||
:focus-visible {
|
||
outline: 2px solid var(--accent);
|
||
outline-offset: 2px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
::selection { background: var(--accent-soft); }
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
*, *::before, *::after { animation: none !important; transition: none !important; }
|
||
}
|
||
|
||
/* ---------- 双层文字系统(签名) ----------
|
||
文化名用衬线宋体;直白解释用无衬线小字。
|
||
展示格式:文化名 · 直白解释 */
|
||
.cn { font-family: var(--font-serif); letter-spacing: 0.02em; }
|
||
.cn__plain {
|
||
font-family: var(--font-ui);
|
||
font-size: 0.72em;
|
||
color: var(--text-3);
|
||
margin-left: 0.4em;
|
||
letter-spacing: 0;
|
||
}
|
||
|
||
.mono { font-family: var(--font-mono); font-size: 0.92em; }
|
||
|
||
/* ---------- 应用外壳 ---------- */
|
||
.app {
|
||
display: grid;
|
||
grid-template-columns: var(--side-w) 1fr;
|
||
min-height: 100vh;
|
||
}
|
||
|
||
.sidebar {
|
||
background: var(--bg-sunken);
|
||
border-right: 1px solid var(--line-soft);
|
||
display: flex;
|
||
flex-direction: column;
|
||
position: sticky;
|
||
top: 0;
|
||
height: 100vh;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.brand {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 18px 18px 14px;
|
||
}
|
||
|
||
.brand__mark {
|
||
width: 34px;
|
||
height: 34px;
|
||
border-radius: 50%;
|
||
flex: none;
|
||
background:
|
||
radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 42%),
|
||
conic-gradient(from 210deg, #3f6e68, #6fae9f 40%, #4a5e63 80%, #3f6e68);
|
||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||
box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.18);
|
||
}
|
||
|
||
.brand__name { font-family: var(--font-serif); font-size: 17px; font-weight: 600; line-height: 1.2; }
|
||
.brand__sub { font-size: 11px; color: var(--text-3); }
|
||
|
||
.side-nav { flex: 1; padding: 4px 10px 16px; }
|
||
|
||
.nav-group { margin-top: 14px; }
|
||
.nav-group__title {
|
||
font-size: 11px;
|
||
color: var(--text-3);
|
||
padding: 0 10px 5px;
|
||
letter-spacing: 0.08em;
|
||
}
|
||
|
||
.nav-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 7px 10px;
|
||
border-radius: var(--radius-sm);
|
||
color: var(--text-2);
|
||
position: relative;
|
||
margin-bottom: 1px;
|
||
}
|
||
|
||
.nav-item:hover { background: var(--bg-raised); color: var(--text-1); }
|
||
|
||
.nav-item.is-active {
|
||
background: var(--accent-soft);
|
||
color: var(--accent-strong);
|
||
}
|
||
|
||
.nav-item.is-active::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: -10px;
|
||
top: 6px;
|
||
bottom: 6px;
|
||
width: 3px;
|
||
border-radius: 2px;
|
||
background: var(--accent);
|
||
}
|
||
|
||
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }
|
||
.nav-item .cn { font-size: 14.5px; }
|
||
.nav-item .nav-plain { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
|
||
.nav-item.is-active .nav-plain { color: inherit; opacity: 0.75; }
|
||
|
||
.side-foot {
|
||
border-top: 1px solid var(--line-soft);
|
||
padding: 12px 10px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
/* ---------- 顶栏 ---------- */
|
||
.main { display: flex; flex-direction: column; min-width: 0; }
|
||
|
||
.topbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
padding: 0 22px;
|
||
height: 54px;
|
||
border-bottom: 1px solid var(--line-soft);
|
||
background: var(--bg);
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 20;
|
||
}
|
||
|
||
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); font-size: 13.5px; }
|
||
.crumbs .cn { color: var(--text-1); font-size: 15px; }
|
||
.crumbs__sep { color: var(--text-3); }
|
||
.crumbs .here { color: var(--text-2); }
|
||
|
||
.topbar__spacer { flex: 1; }
|
||
|
||
.prototype-tag {
|
||
font-size: 11px;
|
||
color: var(--text-3);
|
||
border: 1px dashed var(--line);
|
||
border-radius: 999px;
|
||
padding: 2px 10px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.icon-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 32px;
|
||
height: 32px;
|
||
border-radius: var(--radius-sm);
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--text-2);
|
||
cursor: pointer;
|
||
}
|
||
.icon-btn:hover { background: var(--bg-raised); color: var(--text-1); }
|
||
.icon-btn svg { width: 17px; height: 17px; }
|
||
|
||
/* ---------- 通用组件 ---------- */
|
||
.content { padding: 26px 30px 48px; max-width: 1160px; width: 100%; margin: 0 auto; }
|
||
.content--wide { max-width: none; }
|
||
|
||
.card {
|
||
background: var(--bg-raised);
|
||
border: 1px solid var(--line-soft);
|
||
border-radius: var(--radius);
|
||
padding: 18px 20px;
|
||
}
|
||
|
||
.card__head {
|
||
display: flex;
|
||
align-items: baseline;
|
||
flex-wrap: wrap;
|
||
row-gap: 5px;
|
||
gap: 8px;
|
||
margin-bottom: 12px;
|
||
}
|
||
.card__head .cn { font-size: 16px; font-weight: 600; }
|
||
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 7px;
|
||
font-family: var(--font-ui);
|
||
font-size: 13.5px;
|
||
padding: 7px 16px;
|
||
border-radius: var(--radius-sm);
|
||
border: 1px solid transparent;
|
||
cursor: pointer;
|
||
transition: background 0.15s, border-color 0.15s;
|
||
white-space: nowrap;
|
||
}
|
||
.btn svg { width: 15px; height: 15px; }
|
||
.btn--primary { background: var(--accent); color: #f4f7f5; }
|
||
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
|
||
.btn--cinnabar { background: var(--cinnabar); color: #fbf3ef; }
|
||
.btn--cinnabar:hover { background: var(--cinnabar-strong); color: #fff; }
|
||
.btn--outline { background: transparent; border-color: var(--line); color: var(--text-1); }
|
||
.btn--outline:hover { border-color: var(--accent); color: var(--accent-strong); }
|
||
.btn--ghost { background: transparent; color: var(--text-2); }
|
||
.btn--ghost:hover { background: var(--bg-raised); color: var(--text-1); }
|
||
.btn--danger { background: transparent; border-color: var(--cinnabar); color: var(--cinnabar); }
|
||
.btn--danger:hover { background: var(--cinnabar-soft); }
|
||
.btn--sm { font-size: 12.5px; padding: 4px 11px; }
|
||
|
||
/* 状态徽章:文化状态 · 直白状态 · 稳定值 */
|
||
.badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 12px;
|
||
padding: 2px 10px;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--line);
|
||
color: var(--text-2);
|
||
white-space: nowrap;
|
||
}
|
||
.badge__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
|
||
.badge .mono { font-size: 11px; color: var(--text-3); }
|
||
.badge--ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
|
||
.badge--ok .badge__dot { background: var(--ok); }
|
||
.badge--info { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
|
||
.badge--info .badge__dot { background: var(--accent); }
|
||
.badge--info .badge__dot { animation: pulse 2.2s ease-in-out infinite; }
|
||
.badge--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
|
||
.badge--warn .badge__dot { background: var(--warn); }
|
||
.badge--err { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
|
||
.badge--err .badge__dot { background: var(--err); }
|
||
.badge--muted .badge__dot { background: var(--muted); }
|
||
|
||
@keyframes pulse { 50% { opacity: 0.35; } }
|
||
|
||
/* 镜像头像:铜镜圆 + 衬线单字 */
|
||
.avatar {
|
||
width: 38px;
|
||
height: 38px;
|
||
border-radius: 50%;
|
||
flex: none;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-family: var(--font-serif);
|
||
font-size: 17px;
|
||
color: #eef4f1;
|
||
background:
|
||
radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.3), transparent 45%),
|
||
conic-gradient(from 210deg, #37514d, #5e9a8d 45%, #46565b 85%, #37514d);
|
||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 4px rgba(0, 0, 0, 0.16);
|
||
}
|
||
.avatar--user {
|
||
background:
|
||
radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.3), transparent 45%),
|
||
conic-gradient(from 210deg, #5a4a44, #9a7b6c 45%, #5f5450 85%, #5a4a44);
|
||
}
|
||
.avatar--sm { width: 28px; height: 28px; font-size: 13px; }
|
||
.avatar--lg { width: 64px; height: 64px; font-size: 28px; }
|
||
|
||
/* 分段控件(界域切换等) */
|
||
.seg {
|
||
display: inline-flex;
|
||
background: var(--bg-sunken);
|
||
border: 1px solid var(--line-soft);
|
||
border-radius: var(--radius-sm);
|
||
padding: 2px;
|
||
gap: 2px;
|
||
}
|
||
.seg__item {
|
||
border: none;
|
||
background: transparent;
|
||
font-family: var(--font-ui);
|
||
font-size: 12.5px;
|
||
color: var(--text-2);
|
||
padding: 3px 12px;
|
||
border-radius: 5px;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
}
|
||
.seg__item .cn { font-size: 13px; }
|
||
.seg__item:hover { color: var(--text-1); }
|
||
.seg__item.is-on { background: var(--bg-raised); color: var(--text-1); box-shadow: var(--shadow-soft); }
|
||
.seg__item--sim.is-on { color: var(--warn); }
|
||
.seg__realm-hint { font-size: 11px; color: var(--text-3); }
|
||
|
||
/* 表单 */
|
||
.input, .textarea {
|
||
width: 100%;
|
||
background: var(--bg-sunken);
|
||
border: 1px solid var(--line);
|
||
border-radius: var(--radius-sm);
|
||
color: var(--text-1);
|
||
font-family: var(--font-ui);
|
||
font-size: 13.5px;
|
||
padding: 8px 12px;
|
||
}
|
||
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
|
||
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); }
|
||
|
||
/* ---------- 首页(镜庭) ---------- */
|
||
.hero { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
|
||
.hero h1 { font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
|
||
.hero__stats { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
|
||
.hero__stat {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1px;
|
||
padding: 8px 16px;
|
||
border-radius: var(--radius);
|
||
background: var(--bg-raised);
|
||
border: 1px solid var(--line-soft);
|
||
min-width: 108px;
|
||
}
|
||
.hero__stat b { font-size: 19px; font-family: var(--font-serif); }
|
||
.hero__stat span { font-size: 11.5px; color: var(--text-3); }
|
||
|
||
.grid-cards {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||
gap: 14px;
|
||
}
|
||
|
||
.char-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
|
||
.char-card__top { display: flex; align-items: center; gap: 12px; }
|
||
.char-card__name { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
|
||
.char-card__line { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
|
||
.char-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
|
||
.char-card__foot .badge { flex: none; }
|
||
.char-card__time { font-size: 11.5px; color: var(--text-3); white-space: nowrap; flex: none; }
|
||
|
||
.home-cols {
|
||
display: grid;
|
||
grid-template-columns: 1.5fr 1fr;
|
||
gap: 16px;
|
||
margin-top: 26px;
|
||
align-items: start;
|
||
}
|
||
|
||
.list-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 11px 4px;
|
||
border-bottom: 1px solid var(--line-soft);
|
||
}
|
||
.list-row:last-child { border-bottom: none; }
|
||
.list-row__body { flex: 1; min-width: 0; }
|
||
.list-row__title { font-size: 13.5px; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
|
||
.list-row__sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.list-row__time { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
|
||
|
||
.realm-dot {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
font-size: 11px;
|
||
color: var(--text-3);
|
||
}
|
||
.realm-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
|
||
.realm-dot--world::before { background: var(--accent); }
|
||
.realm-dot--sim::before { background: var(--warn); }
|
||
|
||
/* 进度条 */
|
||
.progress { height: 5px; border-radius: 3px; background: var(--bg-sunken); overflow: hidden; }
|
||
.progress__bar { height: 100%; border-radius: 3px; background: var(--accent); }
|
||
.progress--warn .progress__bar { background: var(--warn); }
|
||
|
||
/* ---------- 角色页(镜生) ---------- */
|
||
.char-layout {
|
||
display: grid;
|
||
grid-template-columns: 300px 1fr;
|
||
gap: 20px;
|
||
align-items: start;
|
||
}
|
||
|
||
.char-list-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 11px 12px;
|
||
border-radius: var(--radius);
|
||
border: 1px solid transparent;
|
||
cursor: pointer;
|
||
}
|
||
.char-list-item:hover { background: var(--bg-raised); }
|
||
.char-list-item.is-active { background: var(--bg-raised); border-color: var(--line); }
|
||
.char-list-item__name { font-family: var(--font-serif); font-size: 15px; }
|
||
.char-list-item__sub { font-size: 11.5px; color: var(--text-3); }
|
||
|
||
.char-head {
|
||
display: flex;
|
||
gap: 18px;
|
||
align-items: flex-start;
|
||
margin-bottom: 20px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.char-head__title { display: flex; flex-direction: column; gap: 6px; }
|
||
.char-head h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
||
.char-head__motto { color: var(--text-2); font-size: 13.5px; }
|
||
.char-head__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
|
||
|
||
.section { margin-bottom: 20px; }
|
||
.section__head {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 10px;
|
||
margin-bottom: 10px;
|
||
}
|
||
.section__head .cn { font-size: 16.5px; font-weight: 600; }
|
||
.section__head .more { margin-left: auto; font-size: 12.5px; }
|
||
|
||
/* 内驱力维度条 */
|
||
.drive-row { display: grid; grid-template-columns: 72px 1fr 44px; align-items: center; gap: 14px; padding: 7px 0; }
|
||
.drive-row__label { font-size: 13px; color: var(--text-2); }
|
||
.drive-row__val { font-size: 12px; color: var(--text-3); text-align: right; }
|
||
|
||
/* 谱系时间线 */
|
||
.timeline { position: relative; padding-left: 20px; }
|
||
.timeline::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 5px;
|
||
top: 8px;
|
||
bottom: 8px;
|
||
width: 1px;
|
||
background: var(--line);
|
||
}
|
||
.timeline__item { position: relative; padding: 0 0 16px 14px; }
|
||
.timeline__item:last-child { padding-bottom: 0; }
|
||
.timeline__item::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: -20px;
|
||
top: 7px;
|
||
width: 11px;
|
||
height: 11px;
|
||
border-radius: 50%;
|
||
background: var(--bg);
|
||
border: 2px solid var(--accent);
|
||
}
|
||
.timeline__item--muted::before { border-color: var(--muted); }
|
||
.timeline__date { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); }
|
||
.timeline__title { font-size: 13.5px; }
|
||
.timeline__sub { font-size: 12.5px; color: var(--text-2); }
|
||
|
||
/* 危险区 */
|
||
.danger-zone { border-color: color-mix(in srgb, var(--cinnabar) 30%, transparent); }
|
||
.danger-zone .card__head .cn { color: var(--cinnabar); }
|
||
|
||
/* ---------- 对话页(镜树) ---------- */
|
||
.conv-layout {
|
||
display: grid;
|
||
grid-template-columns: 268px 1fr 320px;
|
||
height: calc(100vh - 54px);
|
||
min-height: 0;
|
||
}
|
||
|
||
.conv-side {
|
||
border-right: 1px solid var(--line-soft);
|
||
overflow-y: auto;
|
||
padding: 14px 12px;
|
||
background: var(--bg);
|
||
}
|
||
|
||
.conv-side__head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; }
|
||
.conv-side__head .cn { font-size: 15px; font-weight: 600; }
|
||
|
||
.conv-item {
|
||
display: block;
|
||
padding: 10px 12px;
|
||
border-radius: var(--radius-sm);
|
||
color: var(--text-2);
|
||
margin-bottom: 2px;
|
||
}
|
||
.conv-item:hover { background: var(--bg-raised); color: var(--text-1); }
|
||
.conv-item.is-active { background: var(--accent-soft); color: var(--text-1); }
|
||
.conv-item__title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
|
||
.conv-item__sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
|
||
|
||
.conv-main {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
.conv-stream { flex: 1; overflow-y: auto; padding: 26px 0 12px; }
|
||
.conv-stream__inner { max-width: 780px; margin: 0 auto; padding: 0 26px; }
|
||
|
||
/* 界域提示条 */
|
||
.realm-banner {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 9px;
|
||
font-size: 12.5px;
|
||
color: var(--text-2);
|
||
background: var(--accent-soft);
|
||
border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
|
||
border-radius: var(--radius-sm);
|
||
padding: 7px 14px;
|
||
margin-bottom: 22px;
|
||
}
|
||
.realm-banner--sim {
|
||
color: var(--warn);
|
||
background: color-mix(in srgb, var(--warn) 9%, transparent);
|
||
border-color: color-mix(in srgb, var(--warn) 32%, transparent);
|
||
}
|
||
.realm-banner svg { width: 15px; height: 15px; flex: none; }
|
||
.realm-banner::before {
|
||
content: "";
|
||
width: 7px; height: 7px;
|
||
border-radius: 50%;
|
||
background: currentColor;
|
||
opacity: 0.75;
|
||
flex: none;
|
||
}
|
||
|
||
/* 消息 */
|
||
.msg { margin-bottom: 30px; }
|
||
|
||
.msg--user { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
|
||
.msg__meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
|
||
.msg--user .bubble {
|
||
background: var(--bg-overlay);
|
||
border: 1px solid var(--line-soft);
|
||
border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
|
||
padding: 11px 16px;
|
||
max-width: 76%;
|
||
font-size: 14px;
|
||
box-shadow: var(--shadow-soft);
|
||
}
|
||
|
||
.msg--char__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
|
||
.msg--char__name { font-family: var(--font-serif); font-size: 15.5px; font-weight: 600; }
|
||
.msg--char__meta { display: flex; align-items: center; gap: 8px; margin-left: 2px; }
|
||
|
||
.msg__blocks { display: flex; flex-direction: column; gap: 12px; padding-left: 48px; }
|
||
|
||
.msg__actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding-left: 48px;
|
||
margin-top: 10px;
|
||
}
|
||
.act-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
font-size: 12px;
|
||
color: var(--text-3);
|
||
background: none;
|
||
border: none;
|
||
border-radius: 5px;
|
||
padding: 4px 9px;
|
||
cursor: pointer;
|
||
font-family: var(--font-ui);
|
||
}
|
||
.act-btn:hover { background: var(--bg-raised); color: var(--text-1); }
|
||
.act-btn svg { width: 13.5px; height: 13.5px; }
|
||
|
||
/* ---------- ContentBlock ---------- */
|
||
.block {
|
||
background: var(--bg-raised);
|
||
border: 1px solid var(--line-soft);
|
||
border-radius: var(--radius);
|
||
overflow: hidden;
|
||
}
|
||
.block__body { padding: 14px 18px; }
|
||
|
||
.block--text { background: transparent; border: none; padding: 0; }
|
||
.block--text .block__body { padding: 0; }
|
||
|
||
.block__head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 8px 14px;
|
||
border-bottom: 1px solid var(--line-soft);
|
||
background: var(--bg-sunken);
|
||
font-size: 12px;
|
||
color: var(--text-3);
|
||
}
|
||
.block__head .lang { color: var(--accent); font-family: var(--font-mono); text-transform: lowercase; }
|
||
.block__head .fname { font-family: var(--font-mono); color: var(--text-2); }
|
||
.block__head .acts { margin-left: auto; display: flex; gap: 4px; }
|
||
|
||
.md p { margin-bottom: 0.8em; }
|
||
.md p:last-child { margin-bottom: 0; }
|
||
.md strong { color: var(--text-1); }
|
||
.md em { color: var(--text-2); }
|
||
.md ul { padding-left: 1.3em; margin-bottom: 0.8em; }
|
||
.md ul:last-child { margin-bottom: 0; }
|
||
.md li { margin-bottom: 0.3em; }
|
||
.md code {
|
||
font-family: var(--font-mono);
|
||
font-size: 0.88em;
|
||
background: var(--bg-sunken);
|
||
border: 1px solid var(--line-soft);
|
||
border-radius: 4px;
|
||
padding: 1px 6px;
|
||
}
|
||
.md a { text-underline-offset: 3px; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
|
||
.md .ext::after { content: " ↗"; font-size: 0.82em; color: var(--text-3); }
|
||
|
||
/* 引文锚 */
|
||
.quote { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--text-2); font-family: var(--font-serif); font-size: 14.5px; }
|
||
.quote__src { display: block; margin-top: 5px; font-family: var(--font-ui); font-size: 11.5px; color: var(--text-3); }
|
||
|
||
/* 表格 */
|
||
.table-wrap { overflow-x: auto; }
|
||
table.data { border-collapse: collapse; width: 100%; font-size: 13px; }
|
||
table.data th {
|
||
text-align: left;
|
||
font-weight: 500;
|
||
color: var(--text-3);
|
||
font-size: 12px;
|
||
border-bottom: 1px solid var(--line);
|
||
padding: 7px 12px;
|
||
white-space: nowrap;
|
||
}
|
||
table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); }
|
||
table.data tr:last-child td { border-bottom: none; }
|
||
table.data td:first-child { color: var(--text-1); font-family: var(--font-serif); }
|
||
|
||
/* 代码块(手工着色示意) */
|
||
pre.code {
|
||
font-family: var(--font-mono);
|
||
font-size: 12.8px;
|
||
line-height: 1.7;
|
||
padding: 14px 16px;
|
||
overflow-x: auto;
|
||
color: var(--text-2);
|
||
}
|
||
pre.code .k { color: var(--accent); }
|
||
pre.code .s { color: var(--ok); }
|
||
pre.code .c { color: var(--text-3); font-style: italic; }
|
||
pre.code .f { color: var(--cinnabar-strong); }
|
||
|
||
/* 数学块 */
|
||
.math {
|
||
font-family: var(--font-serif);
|
||
font-style: italic;
|
||
font-size: 16.5px;
|
||
text-align: center;
|
||
padding: 16px 12px;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
.math sub, .math sup { font-size: 0.68em; }
|
||
.math__fallback { display: block; margin-top: 8px; font-family: var(--font-ui); font-style: normal; font-size: 11.5px; color: var(--text-3); text-align: center; }
|
||
|
||
/* Mermaid 示意(内联 SVG 图) */
|
||
.mermaid-box { padding: 18px 14px; overflow-x: auto; }
|
||
.mermaid-cap { padding: 8px 14px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
|
||
|
||
/* 音频块 */
|
||
.audio { display: flex; align-items: center; gap: 14px; padding: 13px 16px; }
|
||
.audio__play {
|
||
width: 36px; height: 36px; border-radius: 50%;
|
||
border: 1px solid var(--line);
|
||
background: var(--bg-sunken);
|
||
color: var(--accent);
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
cursor: pointer; flex: none;
|
||
}
|
||
.audio__play svg { width: 15px; height: 15px; margin-left: 2px; }
|
||
.wave { display: flex; align-items: center; gap: 2.5px; height: 30px; flex: 1; }
|
||
.wave i {
|
||
width: 3px;
|
||
border-radius: 2px;
|
||
background: var(--accent);
|
||
opacity: 0.55;
|
||
display: block;
|
||
}
|
||
.audio__time { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
|
||
.audio__meta { flex: none; text-align: right; }
|
||
.audio__meta .t { font-size: 12px; color: var(--text-2); display: block; }
|
||
|
||
/* 工具调用块 */
|
||
.tool { border-left: 3px solid var(--accent); }
|
||
.tool__head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
|
||
.tool__name { font-family: var(--font-mono); font-size: 13px; color: var(--text-1); }
|
||
.tool__purpose { font-size: 12px; color: var(--text-3); }
|
||
.tool__body { padding: 0 16px 12px; font-size: 12.5px; color: var(--text-2); }
|
||
.tool__row { display: flex; gap: 8px; padding: 2px 0; }
|
||
.tool__row .k2 { color: var(--text-3); flex: none; }
|
||
.tool__stat { display: flex; gap: 14px; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
|
||
|
||
/* 请命(审批)卡 —— 签名组件 */
|
||
.approval { border: 1px solid color-mix(in srgb, var(--cinnabar) 38%, transparent); }
|
||
.approval__head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 12px 18px;
|
||
border-bottom: 1px solid color-mix(in srgb, var(--cinnabar) 22%, transparent);
|
||
background: var(--cinnabar-soft);
|
||
}
|
||
.approval__seal {
|
||
width: 30px; height: 30px; flex: none;
|
||
border-radius: 50%;
|
||
border: 1.5px solid var(--cinnabar);
|
||
color: var(--cinnabar);
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
font-family: var(--font-serif); font-size: 13px; font-weight: 600;
|
||
background: var(--bg-raised);
|
||
}
|
||
.approval__title { font-size: 14px; }
|
||
.approval__title .cn { font-size: 15.5px; font-weight: 600; color: var(--cinnabar); }
|
||
.approval__body { padding: 13px 18px; display: flex; flex-direction: column; gap: 8px; }
|
||
.fact { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: 13px; }
|
||
.fact__k { color: var(--text-3); }
|
||
.fact__v { color: var(--text-1); }
|
||
.fact__v .mono { font-size: 12px; color: var(--text-2); }
|
||
.approval__acts { display: flex; gap: 10px; align-items: center; padding: 0 18px 15px; }
|
||
.approval__note { font-size: 11.5px; color: var(--text-3); margin-left: auto; max-width: 220px; }
|
||
.approval--done { border-color: var(--line); }
|
||
.approval--done .approval__head { background: transparent; border-bottom-color: var(--line-soft); }
|
||
.approval--done .approval__seal { border-color: var(--ok); color: var(--ok); }
|
||
|
||
/* 候答 */
|
||
.candidates { display: flex; align-items: center; gap: 10px; padding-left: 48px; margin-top: -14px; margin-bottom: 26px; }
|
||
.cand-switch { display: inline-flex; gap: 4px; }
|
||
.cand-tag {
|
||
border: 1px solid var(--line);
|
||
background: var(--bg-sunken);
|
||
color: var(--text-3);
|
||
font-size: 12px;
|
||
border-radius: 999px;
|
||
padding: 3px 12px;
|
||
cursor: pointer;
|
||
}
|
||
.cand-tag.is-on { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
|
||
|
||
/* 残答折叠 */
|
||
.sealed {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 10px 16px;
|
||
border: 1px dashed var(--line);
|
||
border-radius: var(--radius);
|
||
font-size: 12.5px;
|
||
color: var(--text-3);
|
||
padding-left: 48px;
|
||
border-left: none; border-right: none; border-top: none;
|
||
margin-left: 0;
|
||
}
|
||
.sealed__body { flex: 1; }
|
||
.sealed__t { color: var(--text-2); }
|
||
|
||
/* 息壤候选(记忆候选卡) */
|
||
.memory-cand { border-left: 3px solid var(--warn); }
|
||
.memory-cand__head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; }
|
||
.memory-cand__body { padding: 0 16px 13px; font-size: 13px; color: var(--text-2); }
|
||
.memory-cand__body .q { font-family: var(--font-serif); color: var(--text-1); font-size: 14px; }
|
||
.memory-cand__acts { display: flex; gap: 8px; margin-top: 10px; }
|
||
.mem-type {
|
||
font-size: 11px;
|
||
border: 1px solid var(--line);
|
||
border-radius: 4px;
|
||
padding: 1px 7px;
|
||
color: var(--text-3);
|
||
}
|
||
|
||
/* 临时芽体(流式) */
|
||
.sprout { border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: transparent; }
|
||
.sprout__head { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 12px; color: var(--accent); border-bottom: 1px dashed var(--line); }
|
||
.sprout__body { padding: 13px 16px; }
|
||
.stream-cursor {
|
||
display: inline-block;
|
||
width: 8px; height: 17px;
|
||
background: var(--accent);
|
||
vertical-align: -3px;
|
||
margin-left: 2px;
|
||
animation: blink 1.05s step-end infinite;
|
||
border-radius: 1px;
|
||
}
|
||
@keyframes blink { 50% { opacity: 0; } }
|
||
.src-line { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); white-space: pre-wrap; }
|
||
.src-line .unclosed { color: var(--text-3); }
|
||
|
||
/* 输入区 */
|
||
.composer { border-top: 1px solid var(--line-soft); padding: 14px 26px 18px; background: var(--bg); }
|
||
.composer__inner { max-width: 780px; margin: 0 auto; }
|
||
.composer__box {
|
||
background: var(--bg-raised);
|
||
border: 1px solid var(--line);
|
||
border-radius: var(--radius-lg);
|
||
padding: 12px 14px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
.composer__box:focus-within { border-color: var(--accent); }
|
||
.composer__ta {
|
||
background: none; border: none; resize: none;
|
||
color: var(--text-1);
|
||
font-family: var(--font-ui);
|
||
font-size: 14px;
|
||
line-height: 1.6;
|
||
min-height: 44px;
|
||
outline: none;
|
||
}
|
||
.composer__bar { display: flex; align-items: center; gap: 6px; }
|
||
.composer__bar .spacer { flex: 1; }
|
||
.composer__hint { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
|
||
.composer__hint .k { color: var(--text-2); }
|
||
|
||
/* ---------- 右栏:镜枝面板 ---------- */
|
||
.conv-ctx {
|
||
border-left: 1px solid var(--line-soft);
|
||
overflow-y: auto;
|
||
padding: 18px 16px 30px;
|
||
background: var(--bg);
|
||
}
|
||
.ctx-section { margin-bottom: 24px; }
|
||
.ctx-section__head {
|
||
display: flex; align-items: baseline; gap: 8px;
|
||
margin-bottom: 10px;
|
||
}
|
||
.ctx-section__head .cn { font-size: 14.5px; font-weight: 600; }
|
||
.ctx-section__head .more { margin-left: auto; font-size: 11.5px; }
|
||
|
||
/* 分支树 */
|
||
.tree { font-size: 12.5px; }
|
||
.tree ul { list-style: none; padding-left: 18px; position: relative; }
|
||
.tree > ul { padding-left: 2px; }
|
||
.tree ul::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 6px; top: 4px; bottom: 12px;
|
||
width: 1px;
|
||
background: color-mix(in srgb, var(--text-3) 55%, transparent);
|
||
}
|
||
.tree li { position: relative; padding: 3px 0 3px 14px; }
|
||
.tree li::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 0; top: 13px;
|
||
width: 12px; height: 1px;
|
||
background: color-mix(in srgb, var(--text-3) 55%, transparent);
|
||
}
|
||
.tree li:last-child::after {
|
||
content: "";
|
||
position: absolute;
|
||
left: -12px; top: 15px; bottom: 0;
|
||
width: 1px;
|
||
background: var(--bg);
|
||
}
|
||
.tree__node { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
|
||
.tree__node .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||
.tree__node--main .nm { color: var(--text-1); font-weight: 500; }
|
||
.tree__node--now {
|
||
background: var(--accent-soft);
|
||
border-radius: 5px;
|
||
outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
|
||
padding: 2px 6px;
|
||
margin-left: -6px;
|
||
color: var(--accent-strong);
|
||
}
|
||
.tree__node--sealed { color: var(--text-3); }
|
||
.tree__tag { font-size: 10.5px; border-radius: 4px; padding: 0 6px; flex: none; border: 1px solid var(--line); color: var(--text-3); }
|
||
.tree__tag--main { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
|
||
.tree__tag--seal { border-color: var(--line); color: var(--text-3); text-decoration: line-through; }
|
||
.tree__tag--bud { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); animation: pulse 2.2s ease-in-out infinite; }
|
||
|
||
/* 上下文镜 */
|
||
.ctx-mirror__row { display: flex; gap: 9px; padding: 6px 0; font-size: 12.5px; align-items: baseline; }
|
||
.ctx-mirror__type { flex: none; width: 34px; color: var(--text-3); }
|
||
.ctx-mirror__txt { color: var(--text-2); flex: 1; }
|
||
.ctx-mirror__src { font-size: 11px; color: var(--text-3); white-space: nowrap; }
|
||
.ctx-mirror__omitted { color: var(--text-3); font-size: 12px; padding: 4px 0; }
|
||
.ctx-meter { margin-top: 10px; }
|
||
.ctx-meter__label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; }
|
||
|
||
/* ---------- 索引页(设计说明) ---------- */
|
||
.doc { max-width: 980px; }
|
||
.doc-hero { padding: 44px 0 30px; border-bottom: 1px solid var(--line-soft); margin-bottom: 34px; }
|
||
.doc-hero h1 { font-family: var(--font-serif); font-size: 34px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 16px; }
|
||
.doc-hero p { color: var(--text-2); max-width: 640px; }
|
||
.doc-hero .ver { font-family: var(--font-mono); font-size: 13px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 3px 12px; vertical-align: middle; }
|
||
|
||
.doc-sec { margin-bottom: 40px; }
|
||
.doc-sec > h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
|
||
.doc-sec > .sub { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
|
||
|
||
.page-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
|
||
.page-nav a.card { display: flex; flex-direction: column; gap: 6px; color: var(--text-1); transition: border-color 0.15s; }
|
||
.page-nav a.card:hover { border-color: var(--accent); }
|
||
.page-nav .cn { font-size: 16px; font-weight: 600; }
|
||
.page-nav .d { font-size: 12.5px; color: var(--text-3); }
|
||
.page-nav .p { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
|
||
|
||
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
|
||
.swatch { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
|
||
.swatch__c { height: 52px; }
|
||
.swatch__m { padding: 7px 10px; font-size: 11.5px; color: var(--text-2); background: var(--bg-raised); }
|
||
.swatch__m b { display: block; font-size: 12px; color: var(--text-1); font-weight: 500; }
|
||
.swatch__m .mono { color: var(--text-3); font-size: 10.5px; }
|
||
|
||
.type-spec { display: flex; flex-direction: column; gap: 14px; }
|
||
.type-spec__row { display: flex; align-items: baseline; gap: 20px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 13px; flex-wrap: wrap; }
|
||
.type-spec__label { width: 130px; flex: none; font-size: 12px; color: var(--text-3); }
|
||
.type-spec__sample { color: var(--text-1); }
|
||
|
||
.demo-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
|
||
.demo-block { margin-bottom: 22px; }
|
||
|
||
.badge-table td:first-child { font-family: var(--font-ui); }
|
||
|
||
/* ---------- 响应式 ---------- */
|
||
@media (max-width: 1200px) {
|
||
.conv-layout { grid-template-columns: 240px 1fr; }
|
||
.conv-ctx { display: none; }
|
||
}
|
||
|
||
@media (max-width: 960px) {
|
||
.app { grid-template-columns: 64px 1fr; }
|
||
.brand__text, .nav-item .cn, .nav-item .nav-plain, .nav-group__title { display: none; }
|
||
.nav-item { justify-content: center; }
|
||
.brand { justify-content: center; padding: 16px 0 10px; }
|
||
.home-cols { grid-template-columns: 1fr; }
|
||
.char-layout { grid-template-columns: 1fr; }
|
||
.conv-layout { grid-template-columns: 1fr; }
|
||
.conv-side { display: none; }
|
||
.content { padding: 20px 18px 40px; }
|
||
.prototype-tag, .topbar .realm-dot { display: none; }
|
||
.crumbs .crumbs__sep, .crumbs .cn { display: none; }
|
||
}
|
||
|
||
/* ============================================================
|
||
第二批页面组件(息壤/形仪/天工阁/百工坊/雅集/同契台/云市/神识阁/器谱/司命台/设置)
|
||
============================================================ */
|
||
|
||
/* 页内选项卡 */
|
||
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; overflow-x: auto; }
|
||
.tab {
|
||
border: none; background: none; cursor: pointer;
|
||
font-family: var(--font-ui); font-size: 13.5px; color: var(--text-2);
|
||
padding: 9px 14px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px;
|
||
display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
|
||
}
|
||
.tab .cnt { font-size: 11px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
|
||
.tab:hover { color: var(--text-1); }
|
||
.tab.is-on { color: var(--accent-strong); border-bottom-color: var(--accent); }
|
||
.tab.is-on .cnt { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
|
||
|
||
/* chip 筛选 */
|
||
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
|
||
.chip {
|
||
font-size: 12.5px; color: var(--text-2);
|
||
border: 1px solid var(--line); border-radius: 999px;
|
||
padding: 3px 13px; cursor: pointer; background: none; font-family: var(--font-ui);
|
||
display: inline-flex; align-items: center; gap: 6px;
|
||
}
|
||
.chip:hover { color: var(--text-1); border-color: var(--text-3); }
|
||
.chip.is-on { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-soft); }
|
||
|
||
/* 搜索条 */
|
||
.searchbar { display: flex; align-items: center; gap: 9px; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 12px; }
|
||
.searchbar svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
|
||
.searchbar input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); font-family: var(--font-ui); font-size: 13.5px; min-width: 0; }
|
||
.searchbar input::placeholder { color: var(--text-3); }
|
||
|
||
/* 开关 */
|
||
.switch { position: relative; width: 36px; height: 20px; flex: none; display: inline-block; }
|
||
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
|
||
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.15s; display: block; }
|
||
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-raised); box-shadow: var(--shadow-soft); transition: transform 0.15s; }
|
||
.switch input:checked + i { background: var(--accent); }
|
||
.switch input:checked + i::after { transform: translateX(16px); }
|
||
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||
|
||
/* 设置行 */
|
||
.set-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
|
||
.set-row:last-child { border-bottom: none; }
|
||
.set-row__body { flex: 1; min-width: 0; }
|
||
.set-row__t { font-size: 13.5px; }
|
||
.set-row__d { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.55; }
|
||
|
||
/* 资产 / 商品网格 */
|
||
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
|
||
.asset-card { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); }
|
||
.asset-thumb { height: 118px; position: relative; display: flex; align-items: center; justify-content: center; }
|
||
.asset-thumb .glyph { font-family: var(--font-serif); font-size: 30px; color: rgba(255, 255, 255, 0.88); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
|
||
.asset-type { position: absolute; top: 8px; left: 8px; font-size: 10.5px; color: #fff; background: rgba(0, 0, 0, 0.45); border-radius: 4px; padding: 1px 7px; }
|
||
.asset-flag { position: absolute; top: 8px; right: 8px; }
|
||
.asset-body { padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
|
||
.asset-name { font-size: 13.5px; }
|
||
.asset-sub { font-size: 11.5px; color: var(--text-3); }
|
||
.asset-acts { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
|
||
|
||
/* 价格(金额直白优先) */
|
||
.price { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
|
||
.price small { font-size: 12px; font-weight: 400; color: var(--text-3); }
|
||
.price--free { color: var(--ok); }
|
||
|
||
/* 天工:工筹步骤 */
|
||
.step { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
|
||
.step:last-child { padding-bottom: 0; }
|
||
.step::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
|
||
.step:last-child::before { display: none; }
|
||
.step__dot { width: 27px; height: 27px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid var(--line); color: var(--text-3); background: var(--bg-raised); font-family: var(--font-serif); }
|
||
.step--done .step__dot { border-color: var(--ok); color: var(--ok); }
|
||
.step--run .step__dot { border-color: var(--accent); color: var(--accent-strong); animation: pulse 2.2s ease-in-out infinite; }
|
||
.step__t { font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
||
.step__d { font-size: 12px; color: var(--text-3); margin-top: 1px; }
|
||
|
||
/* 用量条形图 */
|
||
.bars { display: flex; align-items: flex-end; gap: 7px; height: 112px; padding-top: 6px; }
|
||
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 100%; }
|
||
.bars__bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--accent); opacity: 0.8; }
|
||
.bars__label { font-size: 10.5px; color: var(--text-3); }
|
||
|
||
/* 授权行 */
|
||
.grant-row { display: grid; grid-template-columns: 122px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
|
||
.grant-row:last-child { border-bottom: none; }
|
||
.grant-row__cap { display: flex; align-items: center; gap: 7px; font-size: 13px; }
|
||
.grant-row__cap svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
|
||
.grant-row__meta { font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }
|
||
|
||
/* 帖子卡(雅集) */
|
||
.post { padding: 16px 18px; }
|
||
.post__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
|
||
.post__author { font-size: 13.5px; }
|
||
.post__time { font-size: 11.5px; color: var(--text-3); }
|
||
.post__body { font-size: 13.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
|
||
.post__foot { display: flex; gap: 4px; margin-top: 12px; }
|
||
|
||
/* 双栏(主内容 + 侧栏) */
|
||
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
|
||
|
||
/* 玄络图容器 */
|
||
.graph-box { padding: 10px; }
|
||
|
||
/* 权限矩阵标记 */
|
||
.mark-ok { color: var(--ok); }
|
||
.mark-no { color: var(--text-3); opacity: 0.45; }
|
||
|
||
/* 治理案件卡 */
|
||
.case-card { border-left: 3px solid var(--warn); }
|
||
|
||
@media (max-width: 1100px) {
|
||
.two-col { grid-template-columns: 1fr; }
|
||
}
|
||
|
||
/* ============================================================
|
||
铜镜鉴心传承:鎏金发丝线(承接 main 分支旧版设计体系)
|
||
============================================================ */
|
||
:root {
|
||
--gilt: #c9a24a;
|
||
--gilt-dim: rgba(201, 162, 74, 0.34);
|
||
--gilt-faint: rgba(201, 162, 74, 0.14);
|
||
}
|
||
[data-theme="light"] {
|
||
--gilt: #8f7226;
|
||
--gilt-dim: rgba(143, 114, 38, 0.4);
|
||
--gilt-faint: rgba(143, 114, 38, 0.15);
|
||
}
|
||
|
||
.brand { cursor: pointer; }
|
||
.brand__mark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 4px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--gilt-dim); }
|
||
.nav-group__title { color: var(--gilt-dim); }
|
||
.topbar { border-bottom: 1px solid var(--gilt-faint); }
|
||
.section__head { position: relative; }
|
||
.section__head > .cn:first-child::before {
|
||
content: "";
|
||
display: inline-block;
|
||
width: 3px;
|
||
height: 13px;
|
||
border-radius: 2px;
|
||
background: var(--gilt);
|
||
margin-right: 8px;
|
||
vertical-align: -1px;
|
||
}
|
||
.timeline::before { background: var(--gilt-faint); }
|
||
|
||
/* logo 彩蛋动效 */
|
||
.brand.tick .brand__mark { transform: scale(0.92); }
|
||
.brand__mark { transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s; }
|
||
.brand.egg-pulse .brand__mark {
|
||
animation: egg-pulse 1.3s ease-out;
|
||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 4px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--gilt), 0 0 22px var(--gilt-dim);
|
||
}
|
||
@keyframes egg-pulse {
|
||
0% { transform: scale(1); }
|
||
30% { transform: scale(1.12) rotate(6deg); }
|
||
60% { transform: scale(0.96) rotate(-3deg); }
|
||
100% { transform: scale(1); }
|
||
}
|
||
.egg-toast {
|
||
position: fixed;
|
||
bottom: 48px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
padding: 12px 28px;
|
||
border-radius: 12px;
|
||
background: var(--accent-soft);
|
||
color: var(--accent-strong);
|
||
font-family: var(--font-serif);
|
||
font-size: 14px;
|
||
border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
|
||
z-index: 9999;
|
||
pointer-events: none;
|
||
opacity: 0;
|
||
transition: opacity 0.4s;
|
||
box-shadow: var(--shadow);
|
||
}
|
||
.egg-toast.is-on { opacity: 1; }
|
||
|
||
/* ============================================================
|
||
侧栏折叠系统(主侧栏 + 对话页左右面板)
|
||
============================================================ */
|
||
.side-fold-btn { color: var(--text-3); }
|
||
.side-fold-btn svg { transition: transform 0.18s ease; }
|
||
.side-fold-btn:hover { color: var(--gilt); }
|
||
|
||
.app--fold { grid-template-columns: 64px 1fr; }
|
||
.app--fold .brand__text,
|
||
.app--fold .nav-item .cn,
|
||
.app--fold .nav-item .nav-plain,
|
||
.app--fold .nav-group__title { display: none; }
|
||
.app--fold .nav-item { justify-content: center; }
|
||
.app--fold .brand { justify-content: center; padding: 16px 0 10px; }
|
||
.app--fold .side-fold-btn svg { transform: rotate(180deg); }
|
||
.app--fold .side-foot { flex-direction: column; gap: 6px; padding: 10px 8px; }
|
||
.app--fold .side-foot > span:not(.avatar) { display: none; }
|
||
|
||
/* 对话页面板折叠 */
|
||
.conv-layout.no-left { grid-template-columns: 0 1fr 320px; }
|
||
.conv-layout.no-left .conv-side { display: none; }
|
||
.conv-layout.no-right { grid-template-columns: 268px 1fr 0; }
|
||
.conv-layout.no-right .conv-ctx { display: none; }
|
||
.panel-toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: var(--radius-sm);
|
||
border: 1px solid var(--line);
|
||
background: var(--bg-raised);
|
||
color: var(--text-3);
|
||
cursor: pointer;
|
||
}
|
||
.panel-toggle:hover { color: var(--gilt); border-color: var(--gilt-dim); }
|
||
.panel-toggle svg { width: 15px; height: 15px; }
|
||
.conv-restore {
|
||
position: absolute;
|
||
top: 14px;
|
||
z-index: 15;
|
||
width: 32px;
|
||
height: 32px;
|
||
border-radius: var(--radius-sm);
|
||
border: 1px solid var(--line);
|
||
background: var(--bg-raised);
|
||
color: var(--text-2);
|
||
cursor: pointer;
|
||
display: none;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-shadow: var(--shadow-soft);
|
||
}
|
||
.conv-restore:hover { color: var(--gilt); border-color: var(--gilt-dim); }
|
||
.conv-restore svg { width: 16px; height: 16px; }
|
||
.conv-restore--left { left: 14px; }
|
||
.conv-restore--right { right: 14px; }
|
||
.conv-layout.no-left .conv-restore--left { display: inline-flex; }
|
||
.conv-layout.no-right .conv-restore--right { display: inline-flex; }
|
||
|
||
/* ============================================================
|
||
登录 / 注册页(StageShell · 铜镜鉴心,承接旧版铜镜登录页)
|
||
============================================================ */
|
||
.stage {
|
||
min-height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
position: relative;
|
||
overflow-x: hidden;
|
||
background: var(--bg);
|
||
}
|
||
|
||
.stage__bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
|
||
.stage__rings {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.stage__rings svg { width: min(94vmin, 880px); height: min(94vmin, 880px); opacity: 0.16; }
|
||
[data-theme="light"] .stage__rings svg { opacity: 0.1; }
|
||
.ring-ink { fill: none; stroke: var(--gilt-faint); stroke-width: 0.6; }
|
||
.ring-faint { fill: none; stroke: var(--gilt-faint); stroke-width: 0.35; stroke-dasharray: 2 7; }
|
||
.ring-slow { transform-origin: center; animation: ring-spin 140s linear infinite; }
|
||
@keyframes ring-spin { to { transform: rotate(360deg); } }
|
||
|
||
.stage__topbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 16px clamp(20px, 4vw, 44px);
|
||
}
|
||
.stage__topbar .spacer { flex: 1; }
|
||
|
||
.stage__main {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 24px 18px 48px;
|
||
}
|
||
|
||
/* 铜镜卡:唯一的镜面 */
|
||
.mirror-card {
|
||
width: min(408px, 94vw);
|
||
background: var(--bg-raised);
|
||
border: 1px solid var(--gilt-dim);
|
||
border-radius: 18px;
|
||
padding: 38px 36px 30px;
|
||
position: relative;
|
||
overflow: hidden;
|
||
box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
||
}
|
||
.mirror-card::after {
|
||
/* 扫描亮带:铜镜在烛光下微倾时的漫反射 */
|
||
content: "";
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
height: 34%;
|
||
background: linear-gradient(178deg, transparent, rgba(201, 162, 74, 0.05) 45%, rgba(255, 255, 255, 0.045) 55%, transparent);
|
||
pointer-events: none;
|
||
animation: mirror-scan 7.5s ease-in-out infinite;
|
||
}
|
||
@keyframes mirror-scan {
|
||
0% { transform: translateY(-110%); }
|
||
55% { transform: translateY(320%); }
|
||
100% { transform: translateY(320%); }
|
||
}
|
||
|
||
.mirror-card__brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 8px; }
|
||
.mirror-card__brand .brand__mark { width: 40px; height: 40px; }
|
||
.mirror-card__title { text-align: center; }
|
||
.mirror-card__title h1 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; letter-spacing: 0.04em; }
|
||
.mirror-card__sub { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 6px 0 26px; }
|
||
|
||
.field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
|
||
.field-group label { font-size: 12.5px; color: var(--text-2); }
|
||
.field-group .input { background: var(--bg-sunken); }
|
||
.field-row { display: flex; gap: 10px; }
|
||
.field-row .input { flex: 1; }
|
||
|
||
.login-alt {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin: 18px 0 14px;
|
||
color: var(--text-3);
|
||
font-size: 11.5px;
|
||
}
|
||
.login-alt::before, .login-alt::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
|
||
|
||
.login-note { font-size: 11.5px; color: var(--text-3); line-height: 1.7; text-align: center; margin-top: 16px; }
|
||
.login-foot { text-align: center; font-size: 13px; margin-top: 18px; color: var(--text-2); }
|
||
|
||
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
|
||
.check-row input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
|
||
.check-row .t { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
|
||
.check-row .t b { color: var(--text-1); font-weight: 500; }
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.mirror-card::after, .ring-slow { animation: none; }
|
||
}
|
||
|
||
/* 面板收起后内容区自适应放宽(平滑过渡) */
|
||
.conv-stream__inner, .composer__inner { transition: max-width 0.25s ease; }
|
||
.conv-layout.no-left .conv-stream__inner,
|
||
.conv-layout.no-left .composer__inner,
|
||
.conv-layout.no-right .conv-stream__inner,
|
||
.conv-layout.no-right .composer__inner { max-width: 1000px; }
|
||
.conv-layout.no-left.no-right .conv-stream__inner,
|
||
.conv-layout.no-left.no-right .composer__inner { max-width: 1140px; }
|
||
|
||
/* 双面板同时收起:不留空轨道,内容占满 */
|
||
.conv-layout.no-left.no-right { grid-template-columns: 0 1fr 0; }
|
||
|
||
/* 显式网格列位:面板收起(display:none)后主区不因自动放置错位到空轨道 */
|
||
.conv-side { grid-column: 1; }
|
||
.conv-main { grid-column: 2; }
|
||
.conv-ctx { grid-column: 3; }
|
||
|
||
/* ============================================================
|
||
旧版「铜镜鉴心」传承细节(本轮系统挖掘 main 分支 25 页后融入)
|
||
============================================================ */
|
||
|
||
/* 极光铜晕:极淡的三色径向氛围底(承接 _base.css body::before) */
|
||
body::before {
|
||
content: "";
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: -1;
|
||
pointer-events: none;
|
||
background:
|
||
radial-gradient(60vmax 60vmax at 12% -10%, rgba(88, 169, 156, 0.05), transparent 60%),
|
||
radial-gradient(50vmax 50vmax at 105% 15%, rgba(201, 162, 74, 0.035), transparent 60%),
|
||
radial-gradient(46vmax 46vmax at 50% 115%, rgba(196, 87, 74, 0.022), transparent 62%);
|
||
}
|
||
|
||
/* 卡片 hover 光扫(承接 --sweep-gradient 手法,克制到接近不可见) */
|
||
.card { position: relative; }
|
||
.card::after {
|
||
content: "";
|
||
position: absolute;
|
||
inset: 0;
|
||
border-radius: inherit;
|
||
pointer-events: none;
|
||
background: linear-gradient(115deg, transparent 30%, rgba(201, 162, 74, 0.03) 48%, rgba(255, 255, 255, 0.035) 52%, transparent 70%);
|
||
opacity: 0;
|
||
transition: opacity 0.35s ease;
|
||
}
|
||
.card:hover::after { opacity: 1; }
|
||
|
||
/* 天工阁:进行中步骤的「动爻」鎏金光晕(爻象手法的 1.0 化:done=铜绿已闭,active=鎏金流转) */
|
||
.step--run .step__dot {
|
||
background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gilt) 30%, var(--bg-raised)), var(--bg-raised));
|
||
box-shadow: 0 0 0 3px var(--gilt-faint), 0 0 14px var(--gilt-dim);
|
||
}
|
||
|
||
/* 镜庭:日晷时辰盘(承接 time-preview 日晷,静态原型固定巳时) */
|
||
.sundial { position: relative; width: 116px; height: 116px; flex: none; }
|
||
.sundial svg { width: 100%; height: 100%; display: block; }
|
||
.sundial__center {
|
||
position: absolute; inset: 0;
|
||
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||
pointer-events: none;
|
||
}
|
||
.sundial__hour { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--gilt); }
|
||
.sundial__sub { font-size: 9.5px; color: var(--text-3); margin-top: 1px; }
|
||
.sundial-spin { transform-origin: 58px 58px; animation: sundial-spin 120s linear infinite; }
|
||
@keyframes sundial-spin { to { transform: rotate(360deg); } }
|
||
@media (prefers-reduced-motion: reduce) { .sundial-spin { animation: none; } }
|
||
|
||
/* 请命卡:风险等级徽章(承接朱批 RISK 分层) */
|
||
.risk-badge {
|
||
font-family: var(--font-mono);
|
||
font-size: 10.5px;
|
||
letter-spacing: 0.04em;
|
||
border-radius: 4px;
|
||
padding: 1px 7px;
|
||
border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent);
|
||
color: var(--warn);
|
||
}
|
||
.risk-badge--low { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
|
||
|
||
/* 玄络:待验假设边(承接河图 hypothesis 朱漆虚线呼吸) */
|
||
.tent-edge { stroke-dasharray: 5 5; animation: tent-pulse 2.8s ease-in-out infinite; }
|
||
@keyframes tent-pulse { 50% { opacity: 0.35; } }
|
||
@media (prefers-reduced-motion: reduce) { .tent-edge { animation: none; } }
|
||
|
||
/* ============================================================
|
||
main 旧版设计复刻件(概念映射到 1.0:六爻→小周天阶段、九枢→灵台六模块、
|
||
周天四镜→大周天四阶段、好奇萤火→内驱力、五行相克→运营指标对)
|
||
============================================================ */
|
||
|
||
/* ---- 灵台六枢星盘(复刻九枢星盘「活的仪器」,映射灵台六模块 ADR-016/017) ---- */
|
||
.astrolabe-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
|
||
.astrolabe { width: 262px; flex: none; }
|
||
.astrolabe svg { width: 100%; height: auto; display: block; }
|
||
.ast-node { cursor: pointer; }
|
||
.ast-node:hover .ast-node__ring { stroke: var(--gilt); }
|
||
.ast-core-text { font-family: var(--font-serif); fill: var(--text-1); }
|
||
.ast-node__name { font-family: var(--font-serif); font-size: 12.5px; fill: var(--text-1); }
|
||
.ast-node__plain { font-size: 8.5px; fill: var(--text-3); }
|
||
.ast-spin { transform-origin: 160px 160px; animation: ast-spin 120s linear infinite; }
|
||
@keyframes ast-spin { to { transform: rotate(360deg); } }
|
||
.ast-breathe { animation: ast-breathe 7s ease-in-out infinite; transform-origin: 160px 160px; }
|
||
@keyframes ast-breathe { 50% { opacity: 0.25; } }
|
||
.ast-alert { animation: ast-alert 1.8s ease-in-out infinite; }
|
||
@keyframes ast-alert { 50% { opacity: 0.2; } }
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.ast-spin, .ast-breathe, .ast-alert { animation: none; }
|
||
}
|
||
|
||
/* 铜镜四态健康词汇(复刻 MirrorState) */
|
||
.mirror-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
|
||
.mirror-state i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
|
||
.mirror-state--steady i { background: var(--ok); box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 55%, transparent); }
|
||
.mirror-state--cracked i { background: var(--err); }
|
||
|
||
/* 相克告警卡(复刻五行相克告警,映射为运营指标对) */
|
||
.clash-row { display: grid; grid-template-columns: 1fr 52px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
|
||
.clash-row:last-child { border-bottom: none; }
|
||
.clash-row__pair { font-size: 12.5px; color: var(--text-2); }
|
||
.clash-row__pair b { color: var(--text-1); font-weight: 500; }
|
||
.clash-strength { height: 5px; border-radius: 3px; background: var(--bg-sunken); overflow: hidden; }
|
||
.clash-strength i { display: block; height: 100%; background: var(--warn); border-radius: 3px; }
|
||
|
||
/* ---- 大周天四镜(复刻周天四镜阶段链,映射 ADR-023 四阶段) ---- */
|
||
.cycle-mirrors { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
|
||
.cycle-mirror {
|
||
flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
|
||
padding: 12px 6px 10px; border-radius: var(--radius);
|
||
background: var(--bg-sunken); border: 1px solid var(--line-soft);
|
||
}
|
||
.cycle-mirror__disc {
|
||
width: 44px; height: 44px; border-radius: 50%;
|
||
display: flex; align-items: center; justify-content: center;
|
||
font-family: var(--font-serif); font-size: 18px;
|
||
background:
|
||
radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16), transparent 46%),
|
||
conic-gradient(from 210deg, #33474a, #4d7d76 45%, #3a4d51 85%, #33474a);
|
||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px var(--line);
|
||
color: var(--text-2);
|
||
}
|
||
.cycle-mirror.is-done .cycle-mirror__disc { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 0 0 1px color-mix(in srgb, var(--ok) 45%, transparent); }
|
||
.cycle-mirror.is-active {
|
||
border-color: color-mix(in srgb, var(--gilt) 45%, transparent);
|
||
background: linear-gradient(180deg, var(--gilt-faint), transparent 70%), var(--bg-sunken);
|
||
}
|
||
.cycle-mirror.is-active .cycle-mirror__disc {
|
||
color: var(--gilt);
|
||
background:
|
||
radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.2), transparent 46%),
|
||
radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--gilt) 32%, #33474a), #33474a);
|
||
box-shadow: 0 0 0 1px var(--gilt-dim), 0 0 16px var(--gilt-dim);
|
||
}
|
||
.cycle-mirror__name { font-size: 12.5px; color: var(--text-2); }
|
||
.cycle-mirror.is-active .cycle-mirror__name { color: var(--gilt); font-weight: 500; }
|
||
.cycle-mirror__state { font-size: 10.5px; color: var(--text-3); }
|
||
.cycle-mirror__link { width: 14px; height: 1px; background: var(--line); flex: none; }
|
||
|
||
/* ---- 好奇萤火(复刻 drive 萤火点,亮度=内驱力值) ---- */
|
||
.firefly {
|
||
width: 9px; height: 9px; border-radius: 50%; flex: none;
|
||
background: var(--accent);
|
||
animation: firefly-pulse 2.6s ease-in-out infinite;
|
||
}
|
||
@keyframes firefly-pulse {
|
||
0%, 100% { box-shadow: 0 0 3px 1px color-mix(in srgb, var(--accent) 45%, transparent); }
|
||
50% { box-shadow: 0 0 9px 3px color-mix(in srgb, var(--accent) 60%, transparent); }
|
||
}
|
||
.firefly--dim { opacity: 0.45; animation-duration: 4.2s; }
|
||
.firefly--bright { background: var(--gilt); }
|
||
.firefly--bright { animation-name: firefly-pulse-gilt; }
|
||
@keyframes firefly-pulse-gilt {
|
||
0%, 100% { box-shadow: 0 0 4px 1px var(--gilt-dim); }
|
||
50% { box-shadow: 0 0 11px 4px var(--gilt-dim); }
|
||
}
|
||
@media (prefers-reduced-motion: reduce) { .firefly { animation: none; } }
|
||
|
||
/* ---- 镜树:会话列表分组 + 彩点(复刻 chat-redesign 铭文往来分组) ---- */
|
||
.conv-group__title {
|
||
font-size: 10.5px; color: var(--text-3); letter-spacing: 0.1em;
|
||
padding: 12px 8px 5px;
|
||
}
|
||
.conv-group__title:first-child { padding-top: 2px; }
|
||
.conv-item__title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
|
||
.conv-item__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
|
||
.conv-item__dot--active { background: var(--accent); box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 55%, transparent); }
|
||
.conv-item__dot--sim { background: var(--warn); }
|
||
.conv-item__dot--risk { background: var(--cinnabar); }
|
||
|
||
/* 用户消息鎏金右边线(复刻 copper-v2 用户消息金线) */
|
||
.msg--user .bubble { border-right: 2px solid var(--gilt-dim); }
|
||
|
||
/* ---- 输入区控制药丸(复刻「深虑 / 博闻」) ---- */
|
||
.pill-btn {
|
||
display: inline-flex; align-items: center; gap: 5px;
|
||
font-size: 12px; color: var(--text-3);
|
||
border: 1px solid var(--line); border-radius: 999px;
|
||
background: none; cursor: pointer; padding: 3px 11px;
|
||
font-family: var(--font-ui);
|
||
}
|
||
.pill-btn:hover { color: var(--text-1); }
|
||
.pill-btn.is-on { color: var(--accent-strong); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
|
||
.pill-btn small { font-size: 10px; color: var(--text-3); }
|
||
|
||
/* ---- 镜生 card-banner(复刻渐变横幅) ---- */
|
||
.char-banner {
|
||
height: 72px; border-radius: var(--radius); margin-bottom: 16px;
|
||
background:
|
||
radial-gradient(120% 190% at 12% 120%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
|
||
linear-gradient(115deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%, var(--gilt-faint) 88%);
|
||
border: 1px solid var(--line-soft);
|
||
}
|
||
|
||
/* ---- 时间河卷章(复刻起居注「卷」分割) ---- */
|
||
.timeline-volume {
|
||
display: flex; align-items: center; gap: 10px;
|
||
margin: 4px 0 12px; padding-left: 14px;
|
||
font-family: var(--font-serif); font-size: 12px; color: var(--gilt);
|
||
}
|
||
.timeline-volume::before, .timeline-volume::after {
|
||
content: ""; flex: 1; height: 1px;
|
||
background: linear-gradient(90deg, transparent, var(--gilt-dim));
|
||
}
|
||
.timeline-volume::after { background: linear-gradient(90deg, var(--gilt-dim), transparent); }
|
||
|
||
/* ---- 阴阳平衡 gauge(复刻太极 gauge,映射朱批治理) ---- */
|
||
.taiji-gauge { display: flex; align-items: center; gap: 16px; }
|
||
.taiji-gauge svg { width: 128px; height: 76px; flex: none; }
|
||
.taiji-gauge__label { fill: var(--text-3); font-size: 9px; }
|
||
.taiji-gauge__val { font-family: var(--font-serif); font-size: 16px; }
|
||
|
||
/* ============================================================
|
||
思考块(thinking block · 契约候选):模型思考摘要可折叠 + 强度呈现
|
||
边界:展示的是模型输出的可读摘要——会话内可见、可丢弃重建;
|
||
不写入长期记录、不进入诊断导出(隐藏推理不采集,宪章不变)。
|
||
============================================================ */
|
||
.think-block {
|
||
border: 1px dashed var(--line);
|
||
border-radius: var(--radius);
|
||
background: transparent;
|
||
overflow: hidden;
|
||
}
|
||
.think-block summary {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 9px;
|
||
padding: 9px 14px;
|
||
cursor: pointer;
|
||
list-style: none;
|
||
font-size: 12.5px;
|
||
color: var(--text-2);
|
||
user-select: none;
|
||
}
|
||
.think-block summary::-webkit-details-marker { display: none; }
|
||
.think-block summary:hover { color: var(--text-1); background: var(--bg-sunken); }
|
||
.think-block summary svg { width: 14px; height: 14px; flex: none; color: var(--text-3); }
|
||
.think-block summary .chev { margin-left: auto; transition: transform 0.18s ease; }
|
||
.think-block[open] summary .chev { transform: rotate(90deg); }
|
||
.think-block summary .think-meta { font-size: 11px; color: var(--text-3); }
|
||
.think-block summary .think-effort {
|
||
font-size: 10.5px;
|
||
border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
|
||
color: var(--accent);
|
||
border-radius: 4px;
|
||
padding: 0 6px;
|
||
}
|
||
.think-body {
|
||
padding: 4px 16px 12px 39px;
|
||
font-size: 12.5px;
|
||
color: var(--text-3);
|
||
line-height: 1.75;
|
||
border-left: 2px solid var(--line-soft);
|
||
margin: 0 14px 0 14px;
|
||
}
|
||
.think-body p { margin-bottom: 0.6em; }
|
||
.think-body p:last-child { margin-bottom: 0; }
|
||
.think-note { padding: 8px 16px 12px 39px; font-size: 11px; color: var(--text-3); opacity: 0.85; }
|
||
|
||
/* 流式思考中:呼吸点 + 实时摘要(底部渐隐,完成后折叠) */
|
||
.think-block.is-thinking { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
|
||
.think-block.is-thinking summary { color: var(--accent-strong); }
|
||
.think-dot {
|
||
width: 8px; height: 8px; border-radius: 50%; flex: none;
|
||
background: var(--accent);
|
||
animation: think-breathe 1.6s ease-in-out infinite;
|
||
}
|
||
@keyframes think-breathe {
|
||
0%, 100% { box-shadow: 0 0 2px 1px color-mix(in srgb, var(--accent) 40%, transparent); opacity: .6; }
|
||
50% { box-shadow: 0 0 8px 3px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 1; }
|
||
}
|
||
.think-live {
|
||
max-height: 108px;
|
||
overflow: hidden;
|
||
-webkit-mask-image: linear-gradient(180deg, transparent, #000 22%);
|
||
mask-image: linear-gradient(180deg, transparent, #000 22%);
|
||
}
|
||
.think-cursor {
|
||
display: inline-block;
|
||
width: 7px; height: 13px;
|
||
background: var(--accent);
|
||
vertical-align: -2px;
|
||
margin-left: 2px;
|
||
border-radius: 1px;
|
||
animation: blink 1.05s step-end infinite;
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.think-dot, .think-cursor { animation: none; }
|
||
}
|
||
|
||
/* 深虑伴随控件:点击深虑 = 开启深度思考;开启后右侧出现力度选项(独立控件,只调档);
|
||
再次点击深虑 = 关闭,力度选项随之消失 */
|
||
.effort-seg {
|
||
display: inline-flex;
|
||
background: var(--bg-sunken);
|
||
border: 1px solid var(--line-soft);
|
||
border-radius: 999px;
|
||
padding: 2px;
|
||
gap: 2px;
|
||
animation: effort-in 0.2s ease;
|
||
}
|
||
.effort-seg[hidden] { display: none; }
|
||
@keyframes effort-in {
|
||
from { opacity: 0; transform: translateX(-4px); }
|
||
to { opacity: 1; transform: none; }
|
||
}
|
||
.effort-seg button {
|
||
border: none;
|
||
background: none;
|
||
cursor: pointer;
|
||
font-family: var(--font-ui);
|
||
font-size: 11.5px;
|
||
color: var(--text-3);
|
||
padding: 2.5px 11px;
|
||
border-radius: 999px;
|
||
}
|
||
.effort-seg button:hover { color: var(--text-1); }
|
||
.effort-seg button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-strong); }
|
||
@media (prefers-reduced-motion: reduce) { .effort-seg { animation: none; } }
|