
/* ---------- 胶囊页签（分段控件：灰底 track + 选中白底胶囊） ---------- */
.lg-biz-tabs {
  /* 依赖 DOM 顺序：插入在问候语之后、推荐行/输入框之前（不使用 order，避免被推到问候语上方） */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* track 内边距，让选中胶囊与容器留出 3px 呼吸 */
  padding: 3px;
  /* 上下间距沿用原下划线页签方案，保证与推荐行/输入框的节奏不变 */
  margin: 18px 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  box-shadow: none;
  align-self: flex-start;
}
.lg-biz-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.lg-biz-tab:hover {
  color: rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.04);
}
/* 选中态：白底胶囊 + 轻阴影（与首页快捷胶囊 .lg-biz-chip 同一视觉语言） */
.lg-biz-tab.is-active {
  color: rgba(0, 0, 0, 0.9);
  background: #fff;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
.lg-biz-tab.is-active:hover { background: #fff; }
.lg-biz-tab:focus-visible {
  outline: 2px solid var(--lg-g-border-color-primary-default, #495dff);
  outline-offset: 2px;
}
/* 轻量文字 tab：不展示图标（对齐 .lg-home-cat__ic 的处理） */
.lg-biz-tab svg { display: none; }

/* 办公态：「页签 ↔ 内容」间距对齐首页 .lg-home-cat 方案。
   页签 margin-bottom 8px + 原生 .chat-composer-wrap{margin-top:24px} = 32px。
   分析 / 业务：一级菜单已下移到输入框下方，所以三个页签都是
   「页签 → 32px → 输入框」，输入框下方各自接自己的菜单行（16px）。 */
body.lingee-work-as-chat .chat-welcome .chat-composer-wrap { margin-top: 24px; }

/* ---------- 分析视图：隐藏「办公」的一级菜单/智能体，复用「办公」原生输入框 ---------- */
/* 分析态隐藏办公的一级菜单/推广位，但保留原生输入框（.chat-composer-wrap），
   与「办公」共用同一套输入框，保证三个页签输入框完全一致。 */
/* 用高特异性覆盖 figma / 分类态模块对 .chat-quick-tags 的 display:flex!important */
body .chat-welcome.lg-biz-analysis:not(.lg-cat-partner) .chat-quick-tags:not(.chat-quick-tags--rec),
body .chat-welcome.lg-biz-analysis .chat-quick-tags,
body .chat-welcome.lg-biz-analysis .lg-work-agents,
body .chat-welcome.lg-biz-analysis .lg-home-agents,
body .chat-welcome.lg-biz-analysis .lg-ainote-entry,
body .chat-welcome.lg-biz-analysis .lg-tags-more {
  display: none !important;
}

/* ---------- 业务视图：隐藏办公一级菜单/推广位，同样保留原生输入框 ---------- */
.chat-welcome.lg-biz-business .lg-ainote-entry,
.chat-welcome.lg-biz-business .chat-quick-tags,
.chat-welcome.lg-biz-business .lg-work-agents,
.chat-welcome.lg-biz-business .lg-home-agents,
.chat-welcome.lg-biz-business .lg-tags-more {
  display: none !important;
}

/* ---------- 分析 / 业务：隐藏「办公」注入的能力包行（.lg-cap-first/second/pill）----------
   该行（AI速记 / 知识创作 / 文档处理 …）由能力包模块注入到 .chat-composer-wrap
   内、输入框上方；分析 / 业务页签有各自的一级菜单，故此处隐藏办公能力包行。 */
.chat-welcome.lg-biz-analysis .lg-cap-first,
.chat-welcome.lg-biz-analysis .lg-cap-second,
.chat-welcome.lg-biz-analysis .lg-cap-pill,
.chat-welcome.lg-biz-business .lg-cap-first,
.chat-welcome.lg-biz-business .lg-cap-second,
.chat-welcome.lg-biz-business .lg-cap-pill {
  display: none !important;
}

/* ---------- 分析 / 业务：复用「办公」原生输入框，用 flex order 排版 ----------
   .chat-welcome-inner 为 flex 纵向容器，其直接子节点顺序（问候语 / 页签 /
   原生输入框 / 自有面板）可用 order 调整。目标顺序：
   问候语 → 页签 → 原生输入框 → 一级菜单(chips) → (业务场景卡片)。
   一级菜单原在输入框上方，已整体下移到输入框下方，与「办公」页签的
   能力包行保持同一位置节奏（输入框 → 16px → chips 行）。 */
.chat-welcome.lg-biz-analysis .lg-biz-tabs,
.chat-welcome.lg-biz-business .lg-biz-tabs { order: 1; }
.chat-welcome.lg-biz-analysis .chat-composer-wrap,
.chat-welcome.lg-biz-business .chat-composer-wrap { order: 2; margin-top: 24px !important; }
.chat-welcome.lg-biz-analysis .lg-biz-panel,
.chat-welcome.lg-biz-business .lg-biz-bizpanel { order: 3; }
.chat-welcome.lg-biz-business .lg-biz-bizextra { order: 4; }

@keyframes lgBizFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 分析面板：内容自有，样式对齐「办公」 ---------- */
.lg-biz-panel { display: none !important; }
.chat-welcome.lg-biz-analysis .lg-biz-panel {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 16px;      /* 位于输入框下方，节奏对齐办公能力包行 */
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  animation: lgBizFade .24s ease;
}

/* 一级菜单：样式对齐办公快捷胶囊（.lg-ainote-pill），置于输入框下方
   （上间距由所属面板 .lg-biz-panel / .lg-biz-bizpanel 的 margin-top 提供） */
.lg-biz-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
}
/* 与办公一级菜单（.chat-welcome .chat-quick-tag）完全一致：尺寸/颜色/字色/描边/阴影 */
.lg-biz-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 32px;
  border: 1px solid var(--home-border);
  background: #fff;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: var(--home-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.lg-biz-chip:hover { background: #fafafa; border-color: rgba(0, 0, 0, 0.12); }
.lg-biz-chip__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  color: rgba(0, 0, 0, 0.55);
  flex: 0 0 auto;
}
.lg-biz-chip__ic svg { width: 16px; height: 16px; }

/* 输入框：不再自绘，直接复用「办公」原生输入框（.chat-composer-wrap /
   .planb-composer + 文件夹/授权选择行），保证三个页签输入框完全一致。 */

/* 默认隐藏业务面板，仅业务态展示 */
.lg-biz-bizpanel { display: none !important; }
.chat-welcome.lg-biz-business .lg-biz-bizpanel {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
}
/* 业务场景卡片区（「发现场景」整块）：已按需求全量下线。
   原先只对「八月九号版本」角色隐藏，现所有角色都不展示 ——
   这里保留默认 display:none，不再给业务态开放展示规则。
   回滚：恢复下方被注释掉的 .chat-welcome.lg-biz-business 规则即可
   （DOM 仍由 buildBizExtra 正常构建，只是不可见）。 */
.lg-biz-bizextra { display: none !important; }
/* .chat-welcome.lg-biz-business .lg-biz-bizextra {
  display: block !important;
  width: 100%;
  animation: lgBizFade 0.24s ease;
} */

/* ---------- 业务视图：企业业务工作台（交互对齐「办公 / 分析」） ---------- */
.lg-biz-bizpanel {
  width: 100%;
  margin-top: 16px;      /* 位于输入框下方，节奏对齐办公能力包行 */
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  animation: lgBizFade 0.24s ease;
}

/* 复用一级菜单胶囊（.lg-biz-chips / .lg-biz-chip）+ 复用「办公」原生输入框（.chat-composer-wrap） */

/* 推荐业务场景：区块标题 */
.lg-biz-sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 26px 2px 12px;
}
.lg-biz-sec__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}
/* 注意：页面存在全局「隐藏更多按钮」脚本/样式，这里强制保持可见 */
.lg-biz-sec__more {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: color .15s;
  white-space: nowrap;
}
.lg-biz-sec__more:hover { color: #025bff; }

/* 场景卡片网格 */
.lg-biz-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
@media (max-width: 720px) {
  .lg-biz-cards { grid-template-columns: repeat(2, 1fr); }
}
.lg-biz-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--home-border, rgba(0, 0, 0, 0.08));
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.lg-biz-card:hover {
  border-color: rgba(2, 91, 255, 0.35);
  box-shadow: 0 6px 16px rgba(2, 91, 255, 0.08);
  transform: translateY(-1px);
}
.lg-biz-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lg-biz-card__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #eef4ff, #e6efff);
  color: #025bff;
  flex: 0 0 auto;
}
.lg-biz-card__ic svg { width: 18px; height: 18px; }
.lg-biz-card__name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
}
.lg-biz-card__desc {
  font-size: 12.5px;
  line-height: 19px;
  color: rgba(0, 0, 0, 0.45);
  min-height: 38px;
}
.lg-biz-card__tag {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #4a6bd8;
  background: rgba(74, 107, 216, 0.09);
}
