/* * 运营支撑系统主题:冷灰工作区 + 深青绿强调。 * 业务页面只引用语义变量;颜色值集中在此文件维护。 * .dark 预留给宿主主题切换,当前产品不增加主题开关。 */ :root { color-scheme: light; --radius: 0.75rem; --type-meta: 0.75rem; --type-support: 0.8125rem; --type-body: 0.875rem; --type-comfort: 0.9375rem; --type-section: 1rem; /* 中性层级:画布、容器、辅助区域、文本与控件边界。 */ --background: #f5f7f8; --foreground: #1f2b32; --card: #ffffff; --card-foreground: var(--foreground); --popover: var(--card); --popover-foreground: var(--foreground); --surface-subtle: #f0f4f5; --secondary: #e9eef1; --secondary-foreground: #334c59; --muted: #edf1f3; --muted-foreground: #586b76; --text-secondary: #425863; --icon: #617783; --border: #d9e2e7; --border-subtle: #e8eef1; --border-hover: #7c969f; --input: #7b8e99; /* 品牌与交互:主操作、选中、价格及键盘焦点。 */ --primary: #176b63; --primary-hover: #10564f; --primary-foreground: #ffffff; --primary-soft: #e8f3f1; --primary-soft-foreground: #195b54; --primary-border: #c5ded9; --accent: var(--primary-soft); --accent-foreground: var(--primary-soft-foreground); --ring: var(--primary); /* 状态色只表达状态,同时提供文字或图标。 */ --success: #216444; --success-soft: #edf7f0; --success-border: #bddcc8; --warning: #835812; --warning-soft: #fff6e5; --warning-border: #e7d2a8; --info: #315e89; --info-soft: #edf3fa; --info-border: #cbdced; --destructive: #b03b3b; --destructive-hover: #922d2d; --destructive-foreground: #ffffff; --destructive-soft: #fff1f0; --destructive-border: #e9b9b7; /* 导航和浮层复用同一语义体系。 */ --sidebar: #f0f4f5; --sidebar-foreground: var(--foreground); --sidebar-primary: var(--primary); --sidebar-primary-foreground: var(--primary-foreground); --sidebar-accent: var(--primary-soft); --sidebar-accent-foreground: var(--primary-soft-foreground); --sidebar-border: var(--border); --sidebar-ring: var(--ring); --notice: #263e48; --notice-foreground: #ffffff; --notice-hover: #38525c; --notice-border: #4b6570; --overlay: rgb(18 35 44 / 38%); --shadow-color: rgb(24 40 48 / 7%); --shadow-card: 0 2px 4px var(--shadow-color); --shadow-card-hover: 0 4px 14px var(--shadow-color); --shadow-floating-control: 0 3px 10px rgb(24 40 48 / 16%); --shadow-panel: 0 18px 60px rgb(24 40 48 / 12%); --shadow-dialog: 0 20px 80px rgb(24 40 48 / 22%); --shadow-toast: 0 6px 25px rgb(24 40 48 / 18%); --scrollbar-thumb: #80999f; --scrollbar-thumb-hover: #4d7778; --scrollbar-track: transparent; --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23617783' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } .dark { color-scheme: dark; --background: #111a20; --foreground: #e5edf1; --card: #19262e; --surface-subtle: #1e2d35; --secondary: #273a44; --secondary-foreground: #d2e0e7; --muted: #22333d; --muted-foreground: #a7bac5; --text-secondary: #c1d0d9; --icon: #9cb2c0; --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239cb2c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); --border: #364d5a; --border-subtle: #2c414d; --border-hover: #7c99a9; --input: #6c899a; --primary: #71c6b9; --primary-hover: #9adbcf; --primary-foreground: #102923; --primary-soft: #203f3d; --primary-soft-foreground: #a8ddd3; --primary-border: #3a6560; --success: #9ad7b2; --success-soft: #203c30; --success-border: #3b6651; --warning: #e9c27c; --warning-soft: #3d3220; --warning-border: #705b34; --info: #a0c7ed; --info-soft: #21384c; --info-border: #42637f; --destructive: #f3aaa5; --destructive-hover: #ffc7c2; --destructive-foreground: #3f1418; --destructive-soft: #41282c; --destructive-border: #7e4b50; --sidebar: #15222a; --notice: #d4e4ec; --notice-foreground: #192a34; --notice-hover: #c1d6e1; --notice-border: #afc8d5; --overlay: rgb(4 12 18 / 68%); --shadow-color: rgb(0 0 0 / 20%); --shadow-floating-control: 0 3px 12px rgb(0 0 0 / 34%); --shadow-panel: 0 18px 60px rgb(0 0 0 / 28%); --shadow-dialog: 0 20px 80px rgb(0 0 0 / 44%); --shadow-toast: 0 6px 25px rgb(0 0 0 / 32%); --scrollbar-thumb: #607f85; --scrollbar-thumb-hover: #91b7b4; --scrollbar-track: transparent; }