/* =========================================================================
   AI 智能工作台 · 统一设计系统 (Shared UI)
   由 8090 静态服务托管，所有业务服务页面 <link> 引用本文件，
   实现「点开任意服务 = 同一套视觉语言」的强一致体验。
   通过 !important 覆盖各服务自带的内联 <style>，保证风格统一。
   ========================================================================= */
:root{
  --wb-brand:#D32129; --wb-brand-700:#C1121C; --wb-brand-800:#A8121A; --wb-brand-soft:#FDECEC;
  --wb-ink-900:#16161A; --wb-ink-700:#3A3A42; --wb-ink-600:#56565F; --wb-ink-500:#76767F; --wb-ink-400:#9A9AA2;
  --wb-line:#EBE9EC; --wb-line-2:#F4F2F4; --wb-paper:#F6F5F6; --wb-card:#FFFFFF;
  --wb-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif;
  --wb-r:11px; --wb-r-lg:15px;
  --wb-sh:0 1px 2px rgba(20,18,24,.05);
  --wb-sh-lg:0 6px 14px rgba(20,18,24,.08),0 24px 48px -26px rgba(20,18,24,.34);
}

*{box-sizing:border-box!important;}
html,body{margin:0!important;padding:0!important;}
body{
  font-family:var(--wb-font)!important;
  font-size:14px!important; line-height:1.55!important;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
/* 浅色服务统一为品牌暖纸底；深色服务(8006)保留自身主题，加 data-wb-theme="dark" 排除 */
body:not([data-wb-theme="dark"]){
  background:var(--wb-paper)!important;
  color:var(--wb-ink-900)!important;
}
body:not([data-wb-theme="dark"]) h1,
body:not([data-wb-theme="dark"]) h2,
body:not([data-wb-theme="dark"]) h3,
body:not([data-wb-theme="dark"]) h4{color:var(--wb-ink-900)!important;font-weight:700!important;letter-spacing:-.01em;}
body:not([data-wb-theme="dark"]) label{color:var(--wb-ink-600)!important;font-size:13px!important;font-weight:600!important;}
a{color:var(--wb-brand);}

/* ---------- 统一操作按钮：醒目品牌红（排除 tab/分段/标签/图标类控件） ---------- */
button:not([class*="tab"]):not([class*="seg"]):not([class*="chip"]):not([class*="tag"]):not([class*="icon"]):not([class*="toggle"]):not(.wb-btn-ghost):not(.wb-back),
.btn:not([class*="tab"]):not([class*="seg"]):not([class*="chip"]):not([class*="tag"]):not([class*="icon"]):not([class*="toggle"]):not(.wb-btn-ghost):not(.wb-back){
  font-family:var(--wb-font)!important;
  font-size:14px!important; font-weight:700!important; line-height:1!important;
  padding:11px 20px!important; border-radius:var(--wb-r)!important; cursor:pointer!important;
  background:var(--wb-brand)!important; color:#fff!important; border:1px solid var(--wb-brand)!important;
  box-shadow:0 8px 18px -8px rgba(211,33,41,.5)!important;
  transition:background .15s,transform .15s,box-shadow .15s!important;
}
button:not([class*="tab"]):not([class*="seg"]):not([class*="chip"]):not([class*="tag"]):not([class*="icon"]):not([class*="toggle"]):not(.wb-btn-ghost):not(.wb-back):hover,
.btn:not([class*="tab"]):not([class*="seg"]):not([class*="chip"]):not([class*="tag"]):not([class*="icon"]):not([class*="toggle"]):not(.wb-btn-ghost):not(.wb-back):hover{
  background:var(--wb-brand-700)!important; transform:translateY(-1px)!important;
}
button:not([class*="tab"]):not([class*="seg"]):not([class*="chip"]):not([class*="tag"]):not([class*="icon"]):not([class*="toggle"]):not(.wb-btn-ghost):not(.wb-back):active{
  transform:translateY(0)!important;
}
/* 次级按钮（克制中性，用于取消/清除等） */
.wb-btn-ghost{
  background:#fff!important; color:var(--wb-ink-700)!important;
  border:1px solid var(--wb-line)!important; box-shadow:none!important;
  font-family:var(--wb-font)!important; font-size:14px!important; font-weight:600!important;
  padding:11px 20px!important; border-radius:var(--wb-r)!important; cursor:pointer!important;
  transition:background .15s,color .15s,border-color .15s!important;
}
.wb-btn-ghost:hover{background:var(--wb-paper)!important; color:var(--wb-brand)!important; border-color:#F4C9CA!important;}

/* ---------- 统一表单控件 ---------- */
input,select,textarea{
  font-family:var(--wb-font)!important; font-size:14px!important;
  padding:10px 13px!important; border:1px solid var(--wb-line)!important;
  border-radius:var(--wb-r)!important; background:#fff!important; color:var(--wb-ink-900)!important;
}
input:focus,select:focus,textarea:focus{
  outline:none!important; border-color:var(--wb-brand)!important;
  box-shadow:0 0 0 3px rgba(211,33,41,.12)!important;
}
label{font-size:13px!important; font-weight:600!important; color:var(--wb-ink-600)!important;}

/* ---------- 统一卡片 / 表格基线 ---------- */
.wb-card{background:var(--wb-card); border:1px solid var(--wb-line); border-radius:var(--wb-r-lg); box-shadow:var(--wb-sh);}
table{border-collapse:collapse; width:100%; font-size:13.5px;}
th,td{padding:10px 12px; border-bottom:1px solid var(--wb-line-2); text-align:left;}
th{color:var(--wb-ink-500); font-weight:600; background:var(--wb-paper);}

/* ---------- 统一全局顶栏（每个服务页注入，提供一致的「返回工作台」导航） ---------- */
.wb-topbar{
  position:sticky; top:0; z-index:1000; display:flex; align-items:center; gap:14px;
  height:54px; padding:0 22px; background:#fff; border-bottom:1px solid var(--wb-line);
  box-shadow:0 1px 0 rgba(20,18,24,.03); font-family:var(--wb-font);
}
.wb-topbar .wb-brand{display:flex; align-items:center; gap:11px; text-decoration:none; color:inherit;}
.wb-topbar .wb-logo{width:32px; height:32px; border-radius:9px;
  background:linear-gradient(140deg,var(--wb-brand),var(--wb-brand-800)); color:#fff;
  display:grid; place-items:center; font-weight:800; font-size:13px;
  box-shadow:0 6px 14px -6px rgba(211,33,41,.5);}
.wb-topbar .wb-brand-txt{display:flex; flex-direction:column; line-height:1.15;}
.wb-topbar .wb-brand-txt b{font-size:14px; font-weight:700; color:var(--wb-ink-900);}
.wb-topbar .wb-brand-txt i{font-size:11px; font-style:normal; color:var(--wb-ink-400);}
.wb-topbar .wb-back{margin-left:auto; display:inline-flex; align-items:center; gap:6px;
  font-size:13px; font-weight:600; color:var(--wb-ink-700); background:var(--wb-paper);
  border:1px solid var(--wb-line); padding:7px 14px; border-radius:10px; text-decoration:none;
  transition:color .15s,border-color .15s,background .15s;}
.wb-topbar .wb-back:hover{color:var(--wb-brand); border-color:#F4C9CA; background:#fff;}

/* ============================================================================
   统一 AI 助手 / AI 服务入口图标  —— 全站唯一定义处
   ---------------------------------------------------------------------------
   改这里即可全站生效（门户服务卡片、各服务页 AI 助手入口、品牌位）：
     --ai-icon       图标字符（🤖️）
     --ai-icon-size  图标字号（14–16px）
   新增服务只要在入口处写 <span class="ai-icon"></span>（或沿用 .logo；门户卡片 .cicon 为服务名称胶囊，不在此列）
   即自动继承，无需再逐服务定义图标。
   ============================================================================ */
:root{
  --ai-icon: "\1F916\FE0F";   /* 🤖️ */
  --ai-icon-size: 15px;       /* 约 14–16px */
}

/* 图标容器：统一字体族、清零旧字形、保证与相邻文字基线对齐 */
.ai-icon,
.logo{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif !important;
  font-size:0 !important;        /* 隐藏旧的品牌字形/emoji */
  font-style:normal !important;
  font-weight:400 !important;
  line-height:1 !important;
  vertical-align:-2px !important; /* 与相邻文字垂直对齐，不错位 */
}
/* 统一的 🤖️ 由 CSS 渲染，任何使用上述类名的入口自动一致 */
.ai-icon::before,
.logo::before{
  content:var(--ai-icon) !important;
  font-size:var(--ai-icon-size) !important;
  line-height:1 !important;
  display:inline-block !important;
}
/* 旧品牌图标/图片资源一律不再渲染 */
.logo  svg, .logo  img,
.ai-icon svg, .ai-icon img{ display:none !important; }

/* AI 助手悬浮球 / 面板内的图标：覆盖组件自带的大尺寸 */
#aiChatFab .ic,
#aiChatPanel .ic{
  font-size:0 !important;
  line-height:1 !important;
}
#aiChatFab .ic::before,
#aiChatPanel .ic::before{
  content:var(--ai-icon) !important;
  font-size:var(--ai-icon-size) !important;
  line-height:1 !important;
}
