/*
 * Nexus Design System — 应用特色色配置 v2.3
 *
 * 配色原则（参考 Linear/Vercel/Notion/Figma 2025 设计趋势 + Radix 色阶实践 + Refactoring UI 色阶方法论）：
 * 1. 每个产品必须有视觉可区分的独特主色
 * 2. AI产品避免蓝紫泛滥，用暖色/绿色/青色差异化
 * 3. 金融/数据类用冷色传达专业感
 * 4. 教育/创意类用暖色传达活力感
 * 5. 开发工具用中性冷色传达技术感
 * 6. 主色需在浅色/深色模式下都可用（WCAG 实测线，2026-10 全 27 套达标）：
 *    - 浅色用 600 档：白字对比 ≥3.0（大字/图形线），多数达 4.5（正文线）
 *    - 文字级强调一律用 --app-accent-strong（同色相 700 档，白底 ≥4.5 正文 AA）
 *    - 暗色用同色相 400 档提亮（暗底 ≥4.5），hover/strong 进到 300 档
 *    - 黄色/琥珀系提亮后白字对比不足，暗色下用深色文字（--app-accent-contrast）
 * 7. 27个主题至少20个可区分色相，消除重复
 */

/* ===== AI 产品线 ===== */

/* promptGenius — AI Prompt优化 — 深靛蓝（AI工具的专业感） */
.app-prompt { --app-accent: #4f46e5; --app-accent-rgb: 79, 70, 229; --app-accent-hover: #6366f1; --app-accent-strong: #4338ca; --app-name: "PromptGenius"; }
[data-theme="dark"] .app-prompt { --app-accent: #8192fa; --app-accent-rgb: 129, 146, 250; --app-accent-hover: #a5b4fc; --app-accent-strong: #a5b4fc; --app-accent-contrast: #0f172a; }

/* promptManager — AI Prompt管理中间件 — 专业蓝（基础设施的可靠感） */
.app-prompt-manager { --app-accent: #2563eb; --app-accent-rgb: 37, 99, 235; --app-accent-hover: #3b82f6; --app-accent-strong: #1d4ed8; --app-name: "Prompt工坊"; }
[data-theme="dark"] .app-prompt-manager { --app-accent: #60a5fa; --app-accent-rgb: 96, 165, 250; --app-accent-hover: #93c5fd; --app-accent-strong: #93c5fd; --app-accent-contrast: #0f172a; }

/* oneNote — 智能笔记 — 深青（Notion式知识管理的冷静感） */
.app-one-note { --app-accent: #0d9488; --app-accent-rgb: 13, 148, 136; --app-accent-hover: #14b8a6; --app-accent-strong: #0f766e; --app-name: "思悟笔记"; }
[data-theme="dark"] .app-one-note { --app-accent: #2dd4bf; --app-accent-rgb: 45, 212, 191; --app-accent-hover: #5eead4; --app-accent-strong: #5eead4; --app-accent-contrast: #0f172a; }

/* aiPet — AI宠物健康 — 暖橘（宠物/生命的温暖感） */
.app-ai-pet { --app-accent: #ea580c; --app-accent-rgb: 234, 88, 12; --app-accent-hover: #f97316; --app-accent-strong: #c2410c; --app-name: "宠康管家"; }
[data-theme="dark"] .app-ai-pet { --app-accent: #fb923c; --app-accent-rgb: 251, 146, 60; --app-accent-hover: #fdba74; --app-accent-strong: #fdba74; --app-accent-contrast: #0f172a; }

/* verseCraft — AI小说创作 — 深玫瑰（创意/文学的热情感） */
.app-verse-craft { --app-accent: #e11d48; --app-accent-rgb: 225, 29, 72; --app-accent-hover: #f43f5e; --app-accent-strong: #be123c; --app-name: "VerseCraft"; }
[data-theme="dark"] .app-verse-craft { --app-accent: #fb7185; --app-accent-rgb: 251, 113, 133; --app-accent-hover: #fda4af; --app-accent-strong: #fda4af; --app-accent-contrast: #0f172a; }

/* resumeAI — 智能简历 — 青蓝（求职/专业的信任感） */
.app-resume-ai { --app-accent: #0891b2; --app-accent-rgb: 8, 145, 178; --app-accent-hover: #06b6d4; --app-accent-strong: #0e7490; --app-name: "ResumeAI"; }
[data-theme="dark"] .app-resume-ai { --app-accent: #22d3ee; --app-accent-rgb: 34, 211, 238; --app-accent-hover: #67e8f9; --app-accent-strong: #67e8f9; --app-accent-contrast: #0f172a; }

/* beeMemory — AI记忆管理 — 琥珀金（记忆/蜂巢的智慧感） */
.app-bee-memory { --app-accent: #d97706; --app-accent-rgb: 217, 119, 6; --app-accent-hover: #f59e0b; --app-accent-strong: #b45309; --app-name: "BeeMemory"; }
[data-theme="dark"] .app-bee-memory { --app-accent: #fbbf24; --app-accent-rgb: 251, 191, 36; --app-accent-hover: #fcd34d; --app-accent-strong: #fcd34d; --app-accent-contrast: #0f172a; }

/* chroma — 向量存储服务 — 品红（向量/嵌入的科技感） */
.app-chroma { --app-accent: #c026d3; --app-accent-rgb: 192, 38, 211; --app-accent-hover: #d946ef; --app-accent-strong: #a21caf; --app-name: "Chroma"; }
[data-theme="dark"] .app-chroma { --app-accent: #e879f9; --app-accent-rgb: 232, 121, 249; --app-accent-hover: #f0abfc; --app-accent-strong: #f0abfc; --app-accent-contrast: #0f172a; }

/* ===== 金融/数据产品线 ===== */

/* goldenStock — 智能投资 — 深蓝（金融的权威感，区别于AI靛蓝） */
.app-golden { --app-accent: #1d4ed8; --app-accent-rgb: 29, 78, 216; --app-accent-hover: #3b82f6; --app-accent-strong: #1e40af; --app-name: "GoldenStock"; }
[data-theme="dark"] .app-golden { --app-accent: #60a5fa; --app-accent-rgb: 96, 165, 250; --app-accent-hover: #93c5fd; --app-accent-strong: #93c5fd; --app-accent-contrast: #0f172a; }

/* financialKG — 金融知识图谱 — 靛青（数据/图谱的深度感） */
.app-financial-kg { --app-accent: #0e7490; --app-accent-rgb: 14, 116, 144; --app-accent-hover: #0891b2; --app-accent-strong: #155e75; --app-name: "FinancialKG"; }
[data-theme="dark"] .app-financial-kg { --app-accent: #22d3ee; --app-accent-rgb: 34, 211, 238; --app-accent-hover: #67e8f9; --app-accent-strong: #67e8f9; --app-accent-contrast: #0f172a; }

/* adSmart — 智能广告 — 玫红（营销/广告的冲击力） */
.app-ad-smart { --app-accent: #db2777; --app-accent-rgb: 219, 39, 119; --app-accent-hover: #ec4899; --app-accent-strong: #be185d; --app-name: "AdSmart"; }
[data-theme="dark"] .app-ad-smart { --app-accent: #f472b6; --app-accent-rgb: 244, 114, 182; --app-accent-hover: #f9a8d4; --app-accent-strong: #f9a8d4; --app-accent-contrast: #0f172a; }

/* ===== 教育产品线 ===== */

/* WisePath — 高考志愿 — 金色（智慧/成就的象征，区别于AdSmart玫红） */
.app-wisepath { --app-accent: #a16207; --app-accent-rgb: 161, 98, 7; --app-accent-hover: #ca8a04; --app-accent-strong: #854d0e; --app-name: "知路"; }
[data-theme="dark"] .app-wisepath { --app-accent: #facc15; --app-accent-rgb: 250, 204, 21; --app-accent-hover: #fde047; --app-accent-strong: #fde047; --app-accent-contrast: #0f172a; }

/* codeBlock — 青少年编程 — 翡翠绿（编程/成长的活力感） */
.app-code-block { --app-accent: #059669; --app-accent-rgb: 5, 150, 105; --app-accent-hover: #10b981; --app-accent-strong: #047857; --app-name: "码趣星"; }
[data-theme="dark"] .app-code-block { --app-accent: #34d399; --app-accent-rgb: 52, 211, 153; --app-accent-hover: #6ee7b7; --app-accent-strong: #6ee7b7; --app-accent-contrast: #0f172a; }

/* geniusStudent — 天才学伴 — 琥珀（学习/探索的温暖感，区别于紫罗兰） */
.app-genius-student { --app-accent: #2F56A7; --app-accent-rgb: 47, 86, 167; --app-accent-hover: #7D9BD4; --app-accent-strong: #25478c; --app-name: "天才学伴"; }
[data-theme="dark"] .app-genius-student { --app-accent: #7D9BD4; --app-accent-rgb: 125, 155, 212; --app-accent-hover: #A3BEE3; --app-accent-strong: #A3BEE3; --app-accent-contrast: #0f172a; }

/* ===== 开发工具产品线 ===== */

/* lion — 配置中心 — 深天蓝（配置/基础设施的可靠感，区别于琥珀） */
.app-lion { --app-accent: #0369a1; --app-accent-rgb: 3, 105, 161; --app-accent-hover: #0284c7; --app-accent-strong: #075985; --app-name: "Lion"; }
[data-theme="dark"] .app-lion { --app-accent: #38bdf8; --app-accent-rgb: 56, 189, 248; --app-accent-hover: #7dd3fc; --app-accent-strong: #7dd3fc; --app-accent-contrast: #0f172a; }

/* miniDeploy — 部署平台 — 天蓝（DevOps/云的开放感） */
.app-mini-deploy { --app-accent: #0284c7; --app-accent-rgb: 2, 132, 199; --app-accent-hover: #0ea5e9; --app-accent-strong: #0369a1; --app-name: "MiniDeploy"; }
[data-theme="dark"] .app-mini-deploy { --app-accent: #38bdf8; --app-accent-rgb: 56, 189, 248; --app-accent-hover: #7dd3fc; --app-accent-strong: #7dd3fc; --app-accent-contrast: #0f172a; }

/* spider — 智能爬虫 — 深绿（爬虫/自动化的持续感） */
.app-spider { --app-accent: #047857; --app-accent-rgb: 4, 120, 87; --app-accent-hover: #059669; --app-accent-strong: #065f46; --app-name: "Spider"; }
[data-theme="dark"] .app-spider { --app-accent: #34d399; --app-accent-rgb: 52, 211, 153; --app-accent-hover: #6ee7b7; --app-accent-strong: #6ee7b7; --app-accent-contrast: #0f172a; }

/* userFeedback — 反馈中台 — 朱红（反馈/告警的紧迫感） */
.app-user-feedback { --app-accent: #dc2626; --app-accent-rgb: 220, 38, 38; --app-accent-hover: #ef4444; --app-accent-strong: #b91c1c; --app-name: "UserFeedback"; }
[data-theme="dark"] .app-user-feedback { --app-accent: #f87171; --app-accent-rgb: 248, 113, 113; --app-accent-hover: #fca5a5; --app-accent-strong: #fca5a5; --app-accent-contrast: #0f172a; }

/* ===== 基础设施 ===== */

/* usercenter — 用户中心 — 靛蓝（认证/安全的权威感，区别于紫罗兰） */
.app-usercenter { --app-accent: #6366f1; --app-accent-rgb: 99, 102, 241; --app-accent-hover: #818cf8; --app-accent-strong: #4f46e5; --app-name: "用户中心"; }
[data-theme="dark"] .app-usercenter { --app-accent: #8192fa; --app-accent-rgb: 129, 146, 250; --app-accent-hover: #a5b4fc; --app-accent-strong: #a5b4fc; --app-accent-contrast: #0f172a; }

/* goldenFish — 闲鱼助手 — 金鱼橙（品牌主色，白字对比 5.2:1，暖橙 × 石板蓝灰互补） */
.app-golden-fish { --app-accent: #c2410c; --app-accent-rgb: 194, 65, 12; --app-accent-hover: #9a3412; --app-accent-strong: #9a3412; --app-name: "GoldenFish"; }
[data-theme="dark"] .app-golden-fish { --app-accent: #fb923c; --app-accent-rgb: 251, 146, 60; --app-accent-hover: #fdba74; --app-accent-strong: #fdba74; --app-accent-contrast: #431407; }

/* ===== 通用主题 ===== */

/* nexus-ui — 设计系统 — 品牌蓝 */
.app-nexus-ui { --app-accent: #3b82f6; --app-accent-rgb: 59, 130, 246; --app-accent-hover: #60a5fa; --app-accent-strong: #2563eb; --app-name: "NexusUI"; }
[data-theme="dark"] .app-nexus-ui { --app-accent: #60a5fa; --app-accent-rgb: 96, 165, 250; --app-accent-hover: #93c5fd; --app-accent-strong: #93c5fd; --app-accent-contrast: #0f172a; }

/* admin — 管理后台 — 深石板蓝（区别于FastRPC石板蓝） */
.app-admin { --app-accent: #334155; --app-accent-rgb: 51, 65, 85; --app-accent-hover: #475569; --app-accent-strong: #1e293b; --app-name: "Admin"; }
[data-theme="dark"] .app-admin { --app-accent: #94a3b8; --app-accent-rgb: 148, 163, 184; --app-accent-hover: #cbd5e1; --app-accent-strong: #cbd5e1; --app-accent-contrast: #0f172a; }

/* docs — 文档中心 — 灰色（文档/中性，区别于FinancialKG靛青） */
.app-docs { --app-accent: #6b7280; --app-accent-rgb: 107, 114, 128; --app-accent-hover: #9ca3af; --app-accent-strong: #4b5563; --app-name: "Docs"; }
[data-theme="dark"] .app-docs { --app-accent: #9ca3af; --app-accent-rgb: 156, 163, 175; --app-accent-hover: #d1d5db; --app-accent-strong: #d1d5db; --app-accent-contrast: #0f172a; }

/* ===== 新接入应用（v2.2 补齐，消除与既有主题撞色） ===== */

/* truemirror — 照妖镜（AI 内容检测） — 品红紫（照鉴真伪的锐利感，与 chroma 品红拉开：更深更紫） */
.app-truemirror { --app-accent: #9333ea; --app-accent-rgb: 147, 51, 234; --app-accent-hover: #a855f7; --app-accent-strong: #7e22ce; --app-name: "照妖镜"; }
[data-theme="dark"] .app-truemirror { --app-accent: #c084fc; --app-accent-rgb: 192, 132, 252; --app-accent-hover: #d8b4fe; --app-accent-strong: #d8b4fe; --app-accent-contrast: #0f172a; }

/* travelMate — 旅行伴侣 — 松绿（自然/旅途的沉静感） */
.app-travel-mate { --app-accent: #2e6b4f; --app-accent-rgb: 46, 107, 79; --app-accent-hover: #3d8a66; --app-accent-strong: #24523d; --app-name: "TravelMate"; }
[data-theme="dark"] .app-travel-mate { --app-accent: #4ade80; --app-accent-rgb: 74, 222, 128; --app-accent-hover: #86efac; --app-accent-strong: #86efac; --app-accent-contrast: #0f172a; }

/* MiaoBi — 妙笔（AI 写作） — 藏蓝配琥珀（书写的沉静 + 点睛） */
.app-miaobi { --app-accent: #1E3A5F; --app-accent-rgb: 30, 58, 95; --app-accent-hover: #2F54A8; --app-accent-strong: #152C4B; --app-name: "妙笔"; }
[data-theme="dark"] .app-miaobi { --app-accent: #8FAADC; --app-accent-rgb: 143, 170, 220; --app-accent-hover: #A5C0E8; --app-accent-strong: #A5C0E8; --app-accent-contrast: #0f172a; }

/* gezhi — 格致（学习管理） — 暗钢蓝（格物致知的理性感） */
.app-gezhi { --app-accent: #1f4e79; --app-accent-rgb: 31, 78, 121; --app-accent-hover: #2a6396; --app-accent-strong: #173a5c; --app-name: "格致"; }
[data-theme="dark"] .app-gezhi { --app-accent: #649ED8; --app-accent-rgb: 100, 158, 216; --app-accent-hover: #8AB6E6; --app-accent-strong: #8AB6E6; --app-accent-contrast: #0f172a; }

