:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --sidebar: #ffffff;
  --sidebar-hover: #f2f2f3;
  --sidebar-text: #3f434c;
  --text: #1d2129;
  --text-weak: #6b7280;
  --border: #e8e8ec;
  --primary: #16a34a;
  --danger: #dc2626;
  --bubble-user: #f2f3f5;
  --bubble-ai: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ---------- 侧边栏 ---------- */
/* 侧栏不再画右侧单边线，改由主区一条连续圆角边框绘制 */
.sidebar {
  width: 244px;
  flex: 0 0 244px;
  background: var(--sidebar);
  border-right: none;
  display: flex;
  flex-direction: column;
  color: var(--sidebar-text);
}

.brand {
  height: 48px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: none;
}
.brand-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  letter-spacing: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-line span { display: inline; }
.brand-welcome {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 欢迎语里的名字与顶栏项目名称同规格 */
.brand-welcome .bw-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.brand-welcome:empty { display: none; }

.sidebar-head { padding: 10px 12px 2px; }
.sidebar-head .btn-new + .btn-new { margin-top: 6px; }

.btn-new {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  text-align: center;
}
.btn-new:hover { background: #f3f3f5; }
/* 我的电脑管家：与「新建任务」同款按钮，激活时绿色高亮 */
.btn-pc { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-pc svg { flex: 0 0 auto; }
.btn-pc.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(22, 163, 74, .08);
}

.task-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 18px 12px;
}

/* ---------- 侧边栏折叠菜单（公司系统 / 常见问题） ---------- */
.collapse { border-bottom: 1px solid var(--border); }
.collapse[hidden] { display: none; }

.collapse-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.collapse-trigger:hover { background: var(--sidebar-hover); color: var(--text); }
.collapse-trigger .caret {
  font-size: 10px;
  line-height: 1;
  color: #7f8899;
  transition: transform .2s;
}
.collapse.open .collapse-trigger { color: var(--text); }
.collapse.open .collapse-trigger .caret { transform: rotate(180deg); color: #8a8f99; }

.collapse-body {
  display: none;
  padding: 2px 8px 10px;
}
.collapse.open .collapse-body { display: block; }

/* ---------- 常用系统 ---------- */
.site-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  margin-bottom: 2px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}
.site-btn:hover { background: var(--sidebar-hover); color: var(--text); }
.site-btn .ico {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #3b6ef6;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}
.site-btn .txt { overflow: hidden; text-overflow: ellipsis; }

/* ---------- 常见问题 ---------- */
.quick-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  margin-bottom: 2px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-btn:hover { background: #ececef; color: var(--primary); }

.task-group {
  font-size: 12px;
  color: #9aa0aa;
  padding: 10px 8px 4px;
}

.task-item {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--sidebar-text);
}
.task-item:hover { background: var(--sidebar-hover); }
.task-item.active { background: #e7e7ea; color: var(--text); font-weight: 600; }
.task-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
}
.task-item .cat {
  font-size: 11px;
  color: #9aa0aa;
  flex: 0 0 auto;
}
.task-item.active .cat { color: #8a8f99; }

/* 任务项右侧的 ⋯ 更多操作按钮 */
.task-more {
  border: none;
  background: transparent;
  color: #9aa0aa;
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}
.task-item:hover .task-more,
.task-item.active .task-more { opacity: 1; }
.task-more:hover { background: rgba(0,0,0,.06); color: var(--text); }
.dot.doing { background: #3b82f6; }
.dot.solved { background: #22c55e; }
.dot.pending { background: #f59e0b; }

/* ---------- 更多操作浮层菜单（⋯ 下拉） ---------- */
.ctx-menu {
  position: fixed;
  z-index: 200;
  min-width: 184px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
  padding: 6px;
  font-size: 13px;
  color: var(--text);
}
.ctx-menu[hidden] { display: none; }
.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  color: var(--text);
}
.ctx-item:hover { background: #f3f6fc; color: var(--primary); }
.ctx-item.danger { color: var(--danger); }
.ctx-item.danger:hover { background: #fef2f2; color: var(--danger); }
.ctx-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  color: #6b7280;
}
.ctx-item:hover .ctx-ico { color: inherit; }
.ctx-label { flex: 1; }
.ctx-sep { height: 1px; background: var(--border); margin: 5px 4px; }


.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 8px 8px 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.foot-btn {
  padding: 6px 8px;
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.foot-btn:hover { background: var(--sidebar-hover); }
.foot-btn.active { background: rgba(22, 163, 74, .12); color: var(--primary); }
/* 退出登录占满整行，避免出现空缺网格 */
#btnLogout { grid-column: 1 / -1; }
.foot-btn-logout { color: var(--danger); }
.foot-btn-logout:hover { background: rgba(220, 38, 38, .08); color: var(--danger); }

.conn {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 6px 8px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #9aa0aa;
  text-align: center;
}
.conn.ok { color: var(--primary); }
.conn.bad { color: var(--danger); }

/* ---------- 主区 ---------- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
  position: relative;
}

/* 顶栏横线 + 侧栏竖线 + 拼接处弧线，用一条连续边框绘制，避免错位和断线 */
.main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 48px;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-top-left-radius: 14px;
  pointer-events: none;
  z-index: 1;
}

.topbar {
  height: 48px;
  flex: 0 0 48px;
  background: var(--panel);
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.topbar .title {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.title-group .title { min-width: 0; }
.quick-drop, .site-drop { position: relative; }
.quick-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 34px;
  width: 300px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
  padding: 8px;
  z-index: 30;
}
.quick-drop.open .quick-menu, .site-drop.open .quick-menu { display: block; }
body:not(.pcmaint) .quick-drop { display: none; }
body.pcmaint .site-drop { display: none; }
.quick-menu .site-btn { color: var(--text); }
.quick-menu .site-btn:hover { background: #f3f5f9; color: var(--primary); }
.site-drop .quick-menu { width: 168px; padding: 6px; }
.site-drop .site-btn { padding: 6px 8px; font-size: 12px; }
.rename-inline {
  flex: 0 0 auto;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 8px;
  background: #f3f5f9;
  border-color: transparent;
  color: var(--text-weak);
}
.rename-inline:hover { background: #e8edf5; border-color: transparent; color: var(--primary); }

.status-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--text-weak);
  background: #fff;
  cursor: pointer;
}

.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-weak);
  cursor: pointer;
}
.icon-btn:hover { background: #f5f5f6; border-color: #dedee3; color: var(--text); }
.icon-btn.active { color: var(--primary); border-color: var(--primary); background: rgba(22, 163, 74, .08); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
/* 纯图标按钮（如右侧网页开关） */
.icon-btn.icon-only {
  width: 30px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn svg { display: block; }

/* ---------- 聊天 ---------- */
.chat {
  flex: 1;
  overflow-y: auto;
  padding: 28px max(24px, calc((100% - 880px) / 2)) 12px;
}

.msg { display: flex; margin-bottom: 16px; gap: 10px; }
.msg.user { justify-content: flex-end; flex-direction: column; align-items: flex-end; gap: 4px; }
.msg-foot { display: flex; align-items: center; gap: 8px; color: var(--text-weak); }
.msg-time { font-size: 11px; color: var(--text-weak); }
.mf-btn {
  border: none;
  background: transparent;
  color: var(--text-weak);
  font-size: 11px;
  line-height: 1.6;
  padding: 1px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mf-btn:hover { background: #f0f0f2; color: var(--text); }

.bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.msg.user .bubble {
  background: var(--bubble-user);
  color: var(--text);
}
.msg.ai .bubble {
  background: var(--bubble-ai);
  border: 1px solid var(--border);
}

/* 气泡署名 + 输入中提示 */
.msg-name { font-size: 11px; color: var(--text-weak); margin-bottom: 4px; }
.msg.user .msg-name { color: var(--text-weak); text-align: right; }
.typing { color: var(--text-weak); font-size: 13px; }
.typing i {
  display: inline-block; width: 4px; height: 4px; margin-left: 2px;
  border-radius: 50%; background: currentColor; vertical-align: middle;
  animation: typingBlink 1.2s infinite;
}
.typing i:nth-of-type(2) { animation-delay: .2s; }
.typing i:nth-of-type(3) { animation-delay: .4s; }
@keyframes typingBlink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.bubble pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.bubble code {
  font-family: Consolas, "Courier New", monospace;
  background: rgba(0, 0, 0, .06);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 12.5px;
}
.bubble pre code { background: transparent; padding: 0; }
.bubble table.bubble-table {
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12.5px;
  white-space: normal;
  line-height: 1.5;
}
.bubble table.bubble-table th,
.bubble table.bubble-table td {
  border: 1px solid var(--border);
  padding: 5px 10px;
  text-align: left;
  vertical-align: top;
}
.bubble table.bubble-table th { background: #f1f5f9; font-weight: 600; }

.refs {
  margin-top: 8px;
  font-size: 11.5px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 6px;
  padding: 4px 8px;
}
.msg.user .refs { color: #2563eb; background: #eef2f7; }

.msg-meta { font-size: 11px; color: var(--text-weak); margin-top: 6px; }
.msg.user .msg-meta { color: var(--text-weak); }

/* 消息操作条：复制 / 重新生成 / 有用 / 没用 */
.msg-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-weak);
}
.ma-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-weak);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  line-height: 1.6;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.ma-btn:hover { color: #2563eb; border-color: #bfd3f5; background: #f2f7ff; }
.ma-btn.active { color: #2563eb; border-color: #2563eb; background: #eaf2ff; }
.ma-ai { margin-left: auto; color: var(--text-weak); font-size: 11px; }

/* 评价后展开的原因输入（可跳过） */
.ma-reason {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ma-reason input {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
}
.ma-reason input:focus { border-color: #c9d8cd; box-shadow: 0 0 0 3px rgba(22, 163, 74, .10); }
.ma-reason button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-weak);
  font-size: 12.5px;
  cursor: pointer;
}
.ma-reason button:hover { background: #f5f5f6; }
.ma-reason-submit {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.ma-reason-submit:hover { filter: brightness(1.05); }

.empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-weak);
  gap: 8px;
  text-align: center;
}
.empty b { color: var(--text); font-size: 20px; font-weight: 600; }
.empty-tip { font-size: 13px; color: #9aa0aa; margin-top: 6px; }

/* 新任务 / 无任务：欢迎布局（标题 + 居中大输入框 + 快捷问题） */
.main.idle .chat { display: flex; flex-direction: column; }
.welcome {
  flex: 1;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 88px 0 28px;
}
.welcome-logo {
  display: block;
  height: 132px;
  width: auto;
  flex: none;
  margin-bottom: -4px;
}
/* logo 位置不动，其余内容整体上移一点 */
.welcome > *:not(.welcome-logo) {
  transform: translateY(-12px);
}
.welcome-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: .5px;
}
.welcome-composer { width: min(760px, 100%); }
.main.idle .composer {
  width: 100%;
  padding: 0;
  background: transparent;
}
.main.idle .composer-row {
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
}
.main.idle .composer textarea { min-height: 52px; }
.welcome-motto {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 32px;
  width: min(760px, 100%);
  margin-top: 12px;
  padding: 0 0 0 16px;
  box-sizing: border-box;
}
.motto-item {
  font-size: 12.5px;
  color: var(--text-weak);
  line-height: 1.7;
  white-space: nowrap;
}
.motto-item span {
  display: inline-block;
  min-width: 6.4em;
  color: var(--text-weak);
  font-size: 12px;
  letter-spacing: 1px;
}
@media (max-width: 620px) {
  .welcome-motto { grid-template-columns: 1fr; gap: 6px; }
  .motto-item { white-space: normal; font-size: 12.5px; }
}

/* 欢迎区公司介绍：与下方文化墙同宽，正文灰字 */
.welcome-intro {
  width: min(760px, 100%);
  box-sizing: border-box;
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-weak);
  line-height: 1.9;
  text-align: justify;
  text-indent: 2em;
}

/* ---------- 输入区 ---------- */
/* ---------- 追问卡片 ---------- */
.ask-card {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 24px 0;
  background: var(--bg);
}
.ask-card input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.ask-card input:focus { border-color: var(--primary); }
.ask-card button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
}
.ask-card button.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.ask-card .hint { font-size: 12px; color: var(--muted); }

/* OA 结果卡片（聊天气泡内） */
.oa-result { margin: 4px 0; }
.oa-result .oa-title { font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.oa-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--card);
  cursor: pointer;
}
.oa-item:hover { border-color: var(--primary); }
.oa-item .oa-row1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.oa-item .oa-name { font-weight: 600; }
.oa-item .oa-tag { font-size: 11px; color: var(--muted); }
.oa-item .oa-state {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 18px;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.oa-item .oa-state.done { background: #e7f7ee; color: #15803d; }
.oa-item .oa-state.doing { background: #eef4ff; color: #1d4ed8; }
.oa-item .oa-state.reject { background: #fef2f2; color: #b91c1c; }
.oa-item .oa-state.void { background: #f3f4f6; color: #6b7280; }
.oa-item .oa-state.back { background: #e6fbfa; color: #0f766e; }
.oa-item .oa-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.oa-detail { font-size: 12px; color: var(--text); margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 8px; }
.oa-log { margin: 4px 0; line-height: 1.6; }
.oa-log .who { font-weight: 600; }
.oa-empty, .oa-err { font-size: 13px; color: var(--muted); padding: 8px 0; }
.oa-err { color: #ef4444; }

/* 卸载卡片：搜索 + 软件列表 + 手输确认 */
.un-search, .un-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--card);
  color: var(--text);
  outline: none;
}
.un-search:focus, .un-input:focus { border-color: var(--primary); }
.un-search { margin: 8px 0; }
.un-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 8px;
  background: var(--card);
}
.un-app {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 7px 9px;
  cursor: pointer;
  color: var(--text);
}
.un-app:hover { background: #f3f6fc; }
.un-app.active { border-color: var(--primary); background: #eef4ff; }
.un-app .un-name { font-size: 13px; font-weight: 600; }
.un-app .un-meta { font-size: 11px; color: var(--muted); }
.un-confirm { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.un-confirm .un-input { margin: 8px 0; }
.un-actions { display: flex; gap: 8px; }
.un-actions button {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  background: var(--card);
  color: var(--text);
}
.un-actions .un-go { background: var(--primary); border-color: var(--primary); color: #fff; }
.un-actions .un-go:disabled { opacity: .5; cursor: not-allowed; }
.un-tip { margin-top: 6px; color: #ef4444; font-size: 12px; }

/* 本机命令执行卡片 */
.oa-cmd {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0;
  white-space: pre-wrap;
  word-break: break-all;
}
.oa-out {
  max-height: 260px;
  overflow: auto;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0 0 6px;
}

/* 选项按钮卡片 */
.ask-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ask-choice {
  border: 1px solid var(--primary);
  background: #eef4ff;
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ask-choice:hover { background: var(--primary); color: #fff; }

.composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px max(24px, calc((100% - 880px) / 2)) 18px;
  background: var(--bg);
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
  transition: border-color .15s, box-shadow .15s;
}
.composer-row:focus-within {
  border-color: #c9d8cd;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .10);
}

.attach-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 340px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
}
.attach-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.attach-chip span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip .attach-x {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
}
.attach-chip .attach-x:hover { color: #ef4444; }

.btn-attach {
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-weak);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-attach:hover { background: #f2f2f3; }
.btn-attach svg { display: block; }

/* 输入框内的小爱心 */
.composer-heart {
  flex: none;
  align-self: center;
  margin: 0 2px 0 6px;
}
/* 欢迎页输入框是 52px 高的多行框：爱心改对齐首行文字，而非整框垂直居中 */
.main.idle .composer-heart {
  align-self: flex-start;
  margin-top: 12px;
}

/* 附件「+」按钮的弹出菜单 */
.attach-wrap { position: relative; flex: none; display: flex; }
.attach-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 128px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  z-index: 30;
}
.attach-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.attach-menu button:hover { background: #f5f5f6; }

.bubble-img { display: block; max-width: 260px; max-height: 260px; border-radius: 10px; margin-bottom: 6px; }
.bubble-file { font-size: 12px; color: var(--muted); margin-bottom: 4px; }

.composer textarea {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 240px;
  overflow-y: auto;
  padding: 9px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
}
.composer textarea:focus { border: none; box-shadow: none; }
.composer.dragging textarea {
  border-color: var(--primary);
  border-style: dashed;
  background: #f0f7ff;
}

.btn-send {
  flex: none;
  width: 76px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: filter .15s;
}
.btn-send:hover { filter: brightness(1.05); }
.btn-send:disabled { background: #93a8d8; cursor: not-allowed; }
.btn-send.stop { background: #ef4444; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.mask.show { display: flex; }

.modal {
  width: 560px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}
.modal.small { width: 420px; }
.modal.wide { width: 720px; }
.modal h3 { margin: 0 0 14px; font-size: 16px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12.5px; color: var(--text-weak); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-inline { display: flex; gap: 8px; }
.row-inline select { flex: 1; }

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.spacer { flex: 1; }
.hint { font-size: 11.5px; color: #9ca3af; }

.btn-primary, .btn-ghost {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text-weak); }
.btn-ghost:hover { border-color: #cbd5e1; color: var(--text); }

.btn-mini {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-weak);
}
.btn-mini:hover { border-color: #cbd5e1; color: var(--text); }
.btn-mini.danger:hover { border-color: var(--danger); color: var(--danger); }

.test-result { font-size: 12px; }
.test-result.ok { color: #16a34a; }
.test-result.bad { color: var(--danger); }

.confirm-text { color: var(--text-weak); line-height: 1.7; margin: 0 0 8px; }
.pass-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  margin-bottom: 6px;
}
.pass-input:focus { border-color: var(--primary); }

.prompt-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  margin-bottom: 6px;
  background: #fff;
  color: var(--text);
}
.prompt-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

.health-body { font-size: 13px; line-height: 1.9; }
.health-body .row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding: 6px 0; gap: 16px; }
.health-body .row b { text-align: right; word-break: break-all; }
.health-body .note { color: var(--text-weak); font-size: 12px; margin-top: 12px; line-height: 1.7; }

/* ---------- 远程排查 ---------- */
.remote-tip { margin: 0 0 14px; font-size: 12px; line-height: 1.7; color: var(--text-weak); }
.remote-result { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 12px; }
.remote-head { font-size: 13px; font-weight: 600; margin-bottom: 8px; word-break: break-all; }
.remote-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.remote-table th, .remote-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; word-break: break-all; }
.remote-table th { width: 42%; color: var(--text-weak); font-weight: 500; }

/* ---------- 知识库 ---------- */
.kb-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.inline-field { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-weak); }
.inline-field input {
  width: 60px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
}

.kb-add {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.kb-add input, .kb-add textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  margin-bottom: 8px;
  background: #fff;
}
.kb-add textarea { resize: vertical; }

.kb-list { max-height: 220px; overflow-y: auto; margin-bottom: 12px; }
.kb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}
.kb-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.kb-item-meta { font-size: 11.5px; color: var(--text-weak); }
.kb-empty { color: var(--text-weak); font-size: 12.5px; padding: 10px 2px; line-height: 1.7; }

.kb-test { display: flex; gap: 8px; margin-bottom: 10px; }
.kb-test input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.kb-result { max-height: 220px; overflow-y: auto; }
.kb-hit { border-left: 3px solid var(--primary); background: #f8fafc; padding: 8px 10px; border-radius: 0 8px 8px 0; margin-bottom: 8px; }
.kb-hit-head { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.kb-hit-head .score { font-weight: 400; color: var(--text-weak); font-size: 11.5px; }
.kb-hit-text { font-size: 12.5px; color: var(--text-weak); line-height: 1.65; white-space: pre-wrap; }
.kb-stats { font-size: 12px; color: var(--text-weak); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: #1f2430;
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all .22s;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 分类与历史 ---------- */
.kb-add-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kb-add-row input { flex: 1; margin-bottom: 0; }
.kb-add-row select {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  outline: none;
}

.kb-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-weak);
}
.kb-filter select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  background: #fff;
  outline: none;
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  background: #eef2ff;
  color: #4f46e5;
  vertical-align: middle;
}
.badge.solved { background: #dcfce7; color: #15803d; }
.badge.pending { background: #fef3c7; color: #b45309; }
.badge.doing { background: #dbeafe; color: #1d4ed8; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filter-row input {
  flex: 1;
  min-width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}
.chips { display: flex; gap: 6px; }
.chip {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: var(--text-weak);
  font-size: 12px;
  cursor: pointer;
}
.chip:hover { border-color: #cbd5e1; }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.filter-select {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-weak);
  background: #fff;
  outline: none;
}

/* ---------- 关于 ---------- */
.info-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f0f2f5;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-weak); }
.info-row b { color: var(--text); font-weight: 500; }

.identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 4px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.identity-row span { color: var(--text); }
.btn-ghost {
  border: 1px solid #dbe2ec;
  background: #fff;
  color: var(--text-weak);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s;
}
.btn-ghost:hover { border-color: var(--danger); color: var(--danger); }

.history-list { max-height: 380px; overflow-y: auto; }
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}
.history-item:hover { border-color: #cbd5e1; background: #f9fafb; }
.history-main { min-width: 0; }
.history-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-snippet {
  font-size: 12px;
  color: var(--text-weak);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-meta { font-size: 11.5px; color: #9ca3af; flex: 0 0 auto; }

/* ---------- 登录封面 ---------- */
/* 登录后的今日寄语：在输入框上方淡入停留，7 秒整后淡出消失，不拦截点击 */
.quote-toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  transform: translate(-50%, 8px);
  width: min(560px, calc(100vw - 48px));
  box-sizing: border-box;
  padding: 22px 30px 18px;
  border: 1px solid #e3efe7;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbf7 100%);
  box-shadow: 0 18px 50px rgba(15, 60, 35, .14);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
  z-index: 70;
}
.quote-toast.show { opacity: 1; transform: translate(-50%, 0); }
.quote-mark {
  height: 18px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 42px;
  line-height: 1;
  color: #16a34a;
}
.quote-text {
  font-size: 19px;
  line-height: 1.75;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .3px;
}
.quote-sign {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-weak);
  text-align: right;
  letter-spacing: .5px;
}

.login-cover {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(4, 10, 24, .30), rgba(4, 10, 24, .52)),
    url('assets/tech-brain.jpg') 25% center / cover no-repeat,
    #060b18;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* 科技感：极光光晕缓慢流动 */
.login-cover::after {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(460px 460px at 22% 28%, rgba(56, 189, 248, .12), transparent 62%),
    radial-gradient(560px 560px at 78% 68%, rgba(99, 102, 241, .14), transparent 62%),
    radial-gradient(360px 360px at 62% 18%, rgba(16, 185, 129, .07), transparent 60%);
  animation: aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .login-cover::after { animation: none; }
}
.login-cover.hidden { display: none; }
.login-card {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: calc(100vw - 40px);
  padding: 44px 36px 32px;
  border-radius: 18px;
  background: rgba(17, 24, 39, .62);
  border: 1px solid rgba(125, 211, 252, .18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(56, 189, 248, .10);
  text-align: center;
  backdrop-filter: blur(10px);
}
.login-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 8px 22px rgba(59, 130, 246, .45);
}
.login-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff;
}
.login-sub { margin: 8px 0 24px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.btn-login {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .4);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-login:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 22px rgba(37, 99, 235, .5); }
.btn-login:active { transform: translateY(0); }
.login-status {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}
.login-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  transition: background .2s, box-shadow .2s;
}
.login-dot.ok { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, .7); }
.login-dot.bad { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, .7); }
.login-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}
.link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.link-btn:hover { color: #fff; }

/* ---------- 移动端适配（侧边栏改为抽屉） ---------- */
.sidebar-toggle,
.sidebar-mask { display: none; }

@media (max-width: 820px) {
  .app { position: relative; }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82vw;
    max-width: 300px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 0 24px rgba(0, 0, 0, .28);
  }
  .app.sidebar-open .sidebar { transform: translateX(0); }

  .sidebar-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
  }
  .app.sidebar-open .sidebar-mask { opacity: 1; pointer-events: auto; }

  .topbar { padding: 0 10px; gap: 8px; }
  .topbar .title { font-size: 15px; }
  .topbar-actions { flex: 0 0 auto; }

  /* 移动端侧栏为抽屉，不显示连续边框，顶栏恢复整条横线 */
  .main::before { display: none; }
  .topbar { border-bottom: 1px solid var(--border); }

  .chat { padding: 12px 12px 6px; }
  .msg { margin-bottom: 12px; }
  .bubble { max-width: 88%; }

  .ask-card { padding: 8px 12px 0; flex-wrap: wrap; }
  .ask-card input { min-width: 0; flex: 1 1 120px; }

  .composer { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .composer textarea { min-height: 44px; font-size: 15px; padding: 10px 12px; }
  .btn-send { width: 64px; flex: 0 0 64px; }
  .main.idle .composer textarea { font-size: 15px; }
  .welcome { gap: 18px; padding: 56px 0 24px; }
  .welcome-logo { height: 96px; }
  .welcome-title { font-size: 22px; }

  .modal,
  .modal.small,
  .modal.wide { width: calc(100vw - 24px); max-height: 86vh; overflow-y: auto; }

  .login-card { width: calc(100vw - 32px); max-width: 420px; }
}

/* 模型思考过程（默认折叠，点开才看） */
.think-box { margin: 0 0 8px; font-size: 12px; color: #64748b; }
.think-box summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; user-select: none; color: #64748b; }
.think-box summary::-webkit-details-marker { display: none; }
.think-box summary::before { content: '▸'; font-size: 11px; transition: transform .15s; }
.think-box[open] summary::before { transform: rotate(90deg); }
.think-box summary:hover { color: #475569; }
.think-body { margin-top: 6px; padding: 8px 10px; border-left: 2px solid #cbd5e1; background: #f8fafc; border-radius: 0 6px 6px 0; white-space: pre-wrap; line-height: 1.7; max-height: 240px; overflow: auto; }

/* 查不到部门时的候选按钮 */
.oa-sug{display:inline-block;margin:4px 6px 0 0;padding:5px 12px;border:1px solid #d7e0ec;border-radius:999px;background:#fff;color:#26384d;font:inherit;font-size:13px;line-height:1.4;cursor:pointer}
.oa-sug:hover{border-color:#7cb0f2;background:#eff6ff;color:#1d4ed8}