
/* ---------- 问候语：两行（Lingee + 文案），左对齐 ---------- */
.lg-fig-greeting {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  white-space: normal;
}

/* ---------- 问候语中的两个可点击段 ----------
   ·「一动 / Acts」  → 切换首页子页签文案方案
   ·「灵基 / Lingee」→ 切换顶部 tab 文案（管理 ↔ 组织）
   悬浮不做任何视觉强调（不变色、不加底），只用指针形状提示可点。 */
.lg-fig-greeting__line .lg-greet-act,
.lg-fig-greeting__line .lg-greet-brand-act {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 6px;
  padding: 0 2px;
  margin: 0 -2px;
}
.lg-fig-greeting__line .lg-greet-act:focus-visible,
.lg-fig-greeting__line .lg-greet-brand-act:focus-visible {
  outline: 2px solid rgba(2, 91, 255, .55);
  outline-offset: 1px;
}
.lg-fig-greeting__brand,
.lg-fig-greeting__line {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 48px;
  color: rgba(0, 0, 0, 0.94);
  white-space: nowrap;
}

/* 对话 / 工作：容器左对齐、拉伸至输入框同宽，隐藏原生问候内容 */
.chat-welcome-inner .chat-greeting {
  align-self: stretch;
  width: 100%;
  text-align: left;
  white-space: normal;
  font-size: 0;                 /* 隐藏原生裸文本节点（如有） */
}
.chat-welcome-inner .chat-greeting > *:not(#lg-fig-greeting) {
  display: none !important;
}
/* 始终展示注入的问候（盖过 style20 在工作模式下的隐藏规则） */
.chat-welcome-inner .chat-greeting > #lg-fig-greeting,
body.lingee-work-as-chat .chat-welcome-inner .chat-greeting > #lg-fig-greeting {
  display: flex !important;
}
/* 工作模式下隐藏 script26 注入的 #wk-greeting（文案改由本模块统一渲染） */
body.lingee-work-as-chat .chat-welcome-inner .chat-greeting > #wk-greeting {
  display: none !important;
}

/* 开发：同样两行左对齐，隐藏原生问候文本 */
.develop-page__greeting {
  align-self: stretch !important;
  width: 100% !important;
  text-align: left !important;
  font-size: 0 !important;      /* 覆盖 style20 的 32px!important，隐藏原生文本 */
}
.develop-page__greeting > *:not(#lg-fig-greeting-dev) {
  display: none !important;
}
.develop-page__greeting > #lg-fig-greeting-dev {
  display: flex !important;
}

/* ---------- 推荐技能标签：移动到「问候语 ↔ 输入框」之间（仅对话/工作） ---------- */
.chat-welcome .chat-composer-wrap {
  display: flex;
  flex-direction: column;
}
.chat-welcome .chat-quick-tags {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  order: -1;                    /* 排到输入框上方 */
  margin: 0 0 16px !important;
}

/* ---------- 输入框高度整体缩小 1/5（三个 tab） ---------- */
/* 对话 / 工作：textarea 最小高度 88 → 70 */
.chat-welcome .planb-composer__input {
  min-height: 70px;
}
/* 开发：textarea 最小高度 110 → 88（覆盖 style20 的 110!important） */
.develop-composer__input {
  min-height: 88px !important;
}

/* ---------- 对话：推荐标签单行横向滚动，「更多 ›」右滑（不向下展开） ---------- */
body:not(.lingee-work-as-chat) .chat-welcome .chat-composer-wrap { position: relative; }
body:not(.lingee-work-as-chat) .chat-welcome .chat-quick-tags:not(.chat-quick-tags--rec) {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px !important;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 52px;         /* 给右侧「更多」按钮留出空间 */
}
body:not(.lingee-work-as-chat) .chat-welcome .chat-quick-tags:not(.chat-quick-tags--rec)::-webkit-scrollbar {
  display: none;
}
/* 两行 row 容器透明化，标签直接参与单行 flex */
body:not(.lingee-work-as-chat) .chat-welcome .chat-quick-tags:not(.chat-quick-tags--rec) .chat-quick-tags-row {
  display: contents !important;
}
/* 「更多 ›」按钮：固定在推荐行右侧，点击向右滑动 */
.lg-tags-more {
  position: absolute;
  top: 0;
  right: 0;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px 0 12px;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
}
/* 左侧渐隐，制造标签滑入「更多」下方的效果 */
.lg-tags-more::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}
.lg-tags-more:hover { background: #fafafa; border-color: rgba(0, 0, 0, 0.12); }
.lg-tags-more svg { width: 14px; height: 14px; }

/* ---------- 工作：推荐智能体（替换对话推荐标签） ---------- */
body.lingee-work-as-chat .chat-welcome .chat-quick-tags { display: none !important; }
.lg-work-agents {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
}
.lg-work-agent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.82);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.lg-work-agent:hover { background: #fafafa; border-color: rgba(0, 0, 0, 0.12); }
/* 线性图标（去掉彩色文字头像） */
.lg-work-agent__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgba(0, 0, 0, 0.55);
  flex: 0 0 auto;
}
.lg-work-agent__ic svg { width: 17px; height: 17px; }

/* ---------- 工作 / 开发：隐藏问候语上方的品牌行「Lingee」（对话 tab 保留） ---------- */
body.lingee-work-as-chat .chat-welcome-inner .chat-greeting #lg-fig-greeting .lg-fig-greeting__brand,
.develop-page__greeting #lg-fig-greeting-dev .lg-fig-greeting__brand {
  display: none !important;
}
