| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- /*
- * 运营支撑系统主题:冷灰工作区 + 青绿强调。
- * 业务页面只引用语义变量;颜色值集中在此文件维护。
- * .dark 预留给宿主主题切换,当前产品不增加主题开关。
- *
- * 色板口径(2026-11-19 依「跨境链路合同与工单表单原型」收口):
- * 主色 #0d7d72、亮青 #12a594(聚焦光圈)、画布 #f4f6f8、卡片边框 #e3e8ee。
- */
- :root {
- color-scheme: light;
- --radius: 0.75rem;
- /* 卡片与控件的圆角分开:卡片 14px、输入框 9px。⛔ 用 --radius 一档套死两者。 */
- --radius-card: 14px;
- --radius-control: 9px;
- --type-meta: 0.75rem;
- --type-support: 0.8125rem;
- --type-body: 0.875rem;
- --type-comfort: 0.9375rem;
- --type-section: 1rem;
- /* 中性层级:画布、容器、辅助区域、文本与控件边界。 */
- --background: #f4f6f8;
- --foreground: #16202b;
- --card: #ffffff;
- --card-foreground: var(--foreground);
- --popover: var(--card);
- --popover-foreground: var(--foreground);
- --surface-subtle: #f6f8fa;
- --secondary: #eff2f5;
- --secondary-foreground: #33404f;
- --muted: #f2f5f8;
- --muted-foreground: #6b7787;
- --text-secondary: #33404f;
- /* 表单编辑项标题:全站统一一档灰蓝、不加粗(业主 2026-11-19 定案)。
- ⛔ 不要用 --foreground/--text-secondary 代替:那会把标题拉回正文色或另起一档。 */
- --field-label: #5b6777;
- --icon: #7f8d9c;
- /* 标题后的问号提示图标:比 --icon 再浅一档(业主 2026-11-19 定案:问号颜色太深会显得表单杂乱)。
- 只在 hover/展开时提亮到 --primary,⛔ 用它代替其它图标的 --icon。 */
- --field-hint-icon: #93a7b2;
- --border: #e3e8ee;
- --border-subtle: #edf1f5;
- --border-hover: #c3d2d8;
- --input: #dfe5ec;
- /* 品牌与交互:主操作、选中、价格及键盘焦点。
- --primary-bright 只用于聚焦光圈与渐变,⛔ 当文字色(对比度不够)。 */
- --primary: #0d7d72;
- --primary-hover: #0b6b61;
- --primary-bright: #12a594;
- --primary-foreground: #ffffff;
- --primary-soft: #e8f5f3;
- --primary-soft-foreground: #0a6a61;
- --primary-border: #cfe9e5;
- --accent: var(--primary-soft);
- --accent-foreground: var(--primary-soft-foreground);
- --ring: var(--primary-bright);
- --ring-glow: rgb(18 165 148 / 13%);
- /* 状态色只表达状态,同时提供文字或图标。 */
- --success: #1a7a55;
- --success-soft: #eff8f4;
- --success-border: #cfeadd;
- --warning: #a96a00;
- --warning-soft: #fff4e2;
- --warning-border: #f5e3c6;
- --info: #1c64b4;
- --info-soft: #eaf4ff;
- --info-border: #d3e5f8;
- --destructive: #b04a3c;
- --destructive-hover: #97392d;
- --destructive-foreground: #ffffff;
- --destructive-soft: #fdf0ef;
- --destructive-border: #f4d8d4;
- /* 导航和浮层复用同一语义体系。 */
- --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%);
- /* 投影走「几乎看不见」的一档:卡片靠 1px 边框分层,⛔ 再加厚投影。 */
- --shadow-color: rgb(16 24 40 / 4%);
- --shadow-card: 0 1px 2px var(--shadow-color);
- --shadow-card-hover: 0 4px 14px rgb(16 24 40 / 8%);
- --shadow-floating-control: 0 4px 14px rgb(16 24 40 / 10%);
- --shadow-panel: 0 18px 60px rgb(16 24 40 / 12%);
- --shadow-dialog: 0 24px 80px rgb(16 24 40 / 18%);
- --shadow-toast: 0 8px 24px rgb(16 24 40 / 22%);
- --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;
- --field-label: #a7bac5;
- --icon: #9cb2c0;
- --field-hint-icon: #75909f;
- --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-bright: #71c6b9;
- --ring-glow: rgb(113 198 185 / 18%);
- --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;
- }
|