/* 设计 Token —— 两层结构:语义层(按主题取值)+ 兼容别名层 */ /* 规范见 doc/frontend/color_token_spec.md。本文件为结构重构产物,值与重构前逐一致(零视觉变化)。 */ :root { color-scheme: light; /* 主题无关的布局变量 */ --app-viewport: 100vh; --app-bottom-inset: env(safe-area-inset-bottom, 0px); /* 装饰色(主题无关,固定品牌色):macOS 风格窗口关闭红绿灯 */ --mac-close: #ff5f57; --mac-close-hover: #ff3b30; --mac-close-border: #e0443e; /* 媒体上的文字可读性阴影(主题无关,需固定强暗影压住任意底图) */ --text-shadow-legible: rgba(0, 0, 0, 0.8); /* 彩蛋装饰色(主题无关,固定festive色) */ --decorative-gold: #ffd700; --decorative-pink: #ff69b4; /* 玻璃质感/实验视觉装饰光斑(主题无关,固定品牌渐变色,刻意不随主题变) */ --glass-tint-blue: rgba(104, 147, 255, 0.2); --glass-tint-blue-soft: rgba(128, 183, 255, 0.18); --glass-tint-blue-mid: rgba(140, 180, 255, 0.35); --glass-tint-amber: rgba(255, 200, 150, 0.22); --glass-base-deep: rgba(28, 27, 41, 0.95); --glass-shadow-deep: rgba(24, 20, 37, 0.45); /* 进度环未完成轨道(主题无关,固定中性灰) */ --progress-track: rgba(127, 135, 146, 0.28); /* 拖拽预览浮层投影(主题无关,固定黑投影) */ --drag-preview-shadow: rgba(0, 0, 0, 0.35); /* === 兼容别名(旧 token 名 → 新语义 token),迁移完成后删除 === */ --claude-bg: var(--surface-base); --claude-panel: var(--surface-panel); --claude-left-rail: var(--surface-rail); --claude-sidebar: var(--surface-sidebar); --theme-surface-card: var(--surface-card); --theme-surface-strong: var(--surface-raised); --theme-surface-soft: var(--surface-soft); --theme-surface-muted: var(--surface-muted); --claude-text: var(--text-primary); --claude-text-secondary: var(--text-secondary); --claude-text-tertiary: var(--text-tertiary); --claude-muted: var(--text-muted); --claude-border: var(--border-default); --claude-border-strong: var(--border-strong); --theme-card-border-strong: var(--border-card-strong); --theme-chip-border: var(--chip-border); --claude-accent: var(--accent); --claude-accent-strong: var(--accent-strong); --claude-button-hover: var(--accent-hover); --claude-button-active: var(--accent-active); --claude-deep: var(--accent-deep); --claude-deep-strong: var(--accent-deep-strong); --claude-success: var(--state-success); --claude-warning: var(--state-warning); --claude-danger: var(--state-danger); --claude-highlight: var(--highlight); --theme-tab-active: var(--tab-active); --theme-chip-bg: var(--chip-bg); --theme-badge-bg: var(--badge-bg); --theme-switch-track: var(--switch-track); --claude-shadow: var(--shadow-card); --theme-shadow-soft: var(--shadow-soft); --theme-shadow-mid: var(--shadow-mid); --theme-shadow-strong: var(--shadow-strong); --theme-overlay-scrim: var(--overlay-scrim); --theme-mobile-menu: var(--mobile-menu); --theme-mobile-menu-shadow: var(--mobile-menu-shadow); --git-diff-add-text: var(--diff-add-text); --git-diff-del-text: var(--diff-del-text); /* 合并项:下列旧名与上面某新名同值,统一指向合并后的语义 token */ --theme-control-border: var(--border-default); --theme-control-border-strong: var(--border-strong); } :root[data-theme='classic'] { color-scheme: light; /* Surface 表面层级 —— Claude 亮色暖奶油盘(canvas