/* 小芸对话界面 · 与小芸（原 Ultron 应用 WS20261006082534000001）主题对齐 v2
   来源：https://ultron-agent.wanwang.xin/<appId>/StaticAppConfig/ua-app-config.json
   themeType=Dark；primary #0071e3，primaryLight #2997ff，modalBg #1d1d1f，pageBg #000，
   textPrimary #f5f5f7，textMuted #86868b，border rgba(255,255,255,.08)
   作用域：html.ai-xiaoyun（只在 AI 助手页挂上，离开即摘除）
   门户产物把颜色写死成 rgb()，因此需要按类名覆盖，不能只改变量。 */

html.ai-xiaoyun {
  --background: 0 0% 0%;
  --foreground: 0 0% 96%;
  --card: 0 0% 11.4%;
  --card-foreground: 0 0% 96%;
  --popover: 0 0% 11.4%;
  --popover-foreground: 0 0% 96%;
  --primary: 211 100% 44.5%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 11.4%;
  --secondary-foreground: 0 0% 96%;
  --muted: 0 0% 11.4%;
  --muted-foreground: 0 0% 64%;
  --accent: 211 100% 44.5%;
  --accent-foreground: 0 0% 100%;
  --destructive: 4 100% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 18%;
  --input: 0 0% 18%;
  --ring: 211 100% 44.5%;
  --radius: 0.75rem;
}

html.ai-xiaoyun body { background: #000 !important; }

/* 页面底 / 卡片 / 分隔线 —— 对应 pageBg #000 与 modalBg #1d1d1f */
html.ai-xiaoyun .bg-surface-muted { background-color: #000 !important; }
html.ai-xiaoyun .bg-surface,
html.ai-xiaoyun .bg-white,
html.ai-xiaoyun .bg-card,
html.ai-xiaoyun .bg-background { background-color: #1d1d1f !important; }
html.ai-xiaoyun .bg-surface-line { background-color: rgba(255, 255, 255, 0.08) !important; }
html.ai-xiaoyun .border-surface-line,
html.ai-xiaoyun .border-b,
html.ai-xiaoyun .border-t { border-color: rgba(255, 255, 255, 0.08) !important; }

/* 文字层级 */
html.ai-xiaoyun .text-ink,
html.ai-xiaoyun .text-foreground,
html.ai-xiaoyun .text-gray-900,
html.ai-xiaoyun .text-slate-900 { color: #f5f5f7 !important; }
html.ai-xiaoyun .text-gray-700,
html.ai-xiaoyun .text-gray-600,
html.ai-xiaoyun .text-slate-600,
html.ai-xiaoyun .text-muted-foreground { color: #d1d1d6 !important; }
html.ai-xiaoyun .text-gray-500,
html.ai-xiaoyun .text-gray-400,
html.ai-xiaoyun .text-slate-500,
html.ai-xiaoyun .text-muted { color: #86868b !important; }

/* 阴影在纯黑背景上要收掉，改成细描边 */
html.ai-xiaoyun .shadow-card,
html.ai-xiaoyun .shadow-lg,
html.ai-xiaoyun .shadow-md,
html.ai-xiaoyun .shadow-sm,
html.ai-xiaoyun .shadow { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset !important; }

/* 输入条：小芸暗色毛玻璃 */
html.ai-xiaoyun input[placeholder*="小芸"],
html.ai-xiaoyun textarea[placeholder*="小芸"] {
  background: #1d1d1f !important;
  color: #f5f5f7 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}
html.ai-xiaoyun input[placeholder*="小芸"]::placeholder,
html.ai-xiaoyun textarea[placeholder*="小芸"]::placeholder { color: #6e6e73 !important; }
html.ai-xiaoyun input[placeholder*="小芸"]:focus,
html.ai-xiaoyun textarea[placeholder*="小芸"]:focus {
  outline: none !important;
  border-color: rgba(0, 113, 227, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2) !important;
}

/* 主色统一到小芸蓝 */
html.ai-xiaoyun .bg-brand,
html.ai-xiaoyun .bg-primary { background-color: #0071e3 !important; }
html.ai-xiaoyun .text-brand,
html.ai-xiaoyun .text-primary { color: #2997ff !important; }
html.ai-xiaoyun .ring-gold { box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.55) !important; }


/* 快捷问题胶囊：默认暗色卡片，悬停走小芸 highlight（rgba(0,113,227,.2) / #2997ff） */
html.ai-xiaoyun .text-ink-secondary { color: #d1d1d6 !important; }
html.ai-xiaoyun .hover\:bg-brand-soft:hover { background-color: rgba(0, 113, 227, 0.2) !important; }
html.ai-xiaoyun .hover\:text-brand:hover { color: #2997ff !important; }
html.ai-xiaoyun .hover\:bg-brand:hover { background-color: #0071e3 !important; }

/* 底部标注条在暗色下的表现 */
html.ai-xiaoyun #ai-disclaimer-bar {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #86868b !important;
}
