/* 先跑通 AI 员工 (RunFirst Agent) · VI 2.1「黄金比例」设计系统样式表
   色彩：墨黑 #111111 / 纸白 #FFFFFF / 浅灰 #F3F2EF / 银朱 #E4402E（仅标志 ■） / 中灰 #8C8C8C / 线灰 #DEDEDE
   界面补充色：#1C1C1B / #333333 / #6B6B6B / #A3A3A3
   字体：Inter（英文数字） + Noto Sans SC（中文：标题一律 900 Black，强调/按钮 700 Bold，正文 400 Regular） */

:root {
  --ink: #111111;
  --ink-alt: #1c1c1b;
  --ink-line: #333333;
  --paper: #ffffff;
  --mist: #f3f2ef;
  --stone: #8c8c8c;
  --ink-muted: #6b6b6b;
  --paper-muted: #a3a3a3;
  --line: #dedede;
  --seal: #e4402e;
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶栏 + 左栏 + 内容区 黄金外壳 ---------- */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background: var(--ink);
}

.topbar {
  height: 56px;
  padding: 0 24px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink-line);
  background: var(--ink);
  color: var(--paper);
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 16px;
  background: var(--ink-line);
  flex-shrink: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--paper-muted);
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.runner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: var(--ink-alt);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
  max-width: 390px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runner-dot {
  width: 7px;
  height: 7px;
  background: var(--paper);
  border-radius: 50%;
  flex-shrink: 0;
}

.runner-dot.offline {
  background: var(--stone);
}

.compute-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--mist);
  color: var(--ink);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.compute-pill:hover {
  opacity: 0.92;
}

.sidebar-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #333333;
  background: #1C1C1B;
  color: #D4D4D4;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sidebar-collapse-btn:hover {
  background: #292928;
  color: #FFFFFF;
  border-color: #555555;
}

.sidebar-collapse-btn.collapsed-active {
  background: #FFFFFF;
  color: #111111;
  border-color: #FFFFFF;
}

.workspace-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 0 12px 12px 0;
  transition: padding-left 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.workspace-body.sidebar-collapsed {
  padding-left: 12px;
}

/* ---------- 左侧部门导航栏 ---------- */
.sidebar {
  width: 248px;
  min-width: 248px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              min-width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.18s ease;
}

.workspace-body.sidebar-collapsed .sidebar {
  width: 0;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--stone);
  padding: 14px 12px 6px;
  text-transform: uppercase;
}

.nav-section-label:first-child {
  padding-top: 2px;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--paper-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: var(--paper);
  background: var(--ink-alt);
}

.nav-item.active {
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.nav-item .nav-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--ink-line);
  color: var(--paper);
}

.nav-item.active .nav-count {
  background: var(--ink);
  color: var(--paper);
}

.sidebar-footer {
  border-top: 1px solid var(--ink-line);
  padding-top: 14px;
  margin-top: 12px;
}

.mode-switch-box {
  background: var(--ink-alt);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  padding: 12px;
}

.mode-switch-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--paper);
  margin-bottom: 4px;
}

.mode-switch-desc {
  font-size: 11px;
  color: var(--paper-muted);
  margin-bottom: 10px;
  line-height: 1.45;
}

.mode-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mode-btn {
  height: 32px;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--paper-muted);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.mode-btn.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---------- 主工作区容器 (浅灰 #F3F2EF 底) ---------- */
.main-stage {
  flex: 1;
  background: var(--mist);
  border-radius: 8px;
  overflow-y: auto;
  padding: 28px 32px;
}

.view-panel {
  display: none;
  flex-direction: column;
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.view-panel.active {
  display: flex;
}

/* ---------- 标题栏与黄金两栏网格 ---------- */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.page-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--stone);
  margin-bottom: 4px;
}

.page-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* 黄金比例两栏：0.618 : 0.382 或 0.382 : 0.618 */
.golden-grid-main-right {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 24px;
  align-items: start;
}

.golden-grid-left-main {
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: 24px;
  align-items: start;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ---------- 卡片与通用组件 ---------- */
.rf-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
}

.rf-card.ink-card {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.rf-card.ink-card .card-header {
  border-bottom-color: var(--ink-line);
}

.card-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.rf-card.ink-card .card-title {
  color: var(--paper);
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  margin: 6px 0 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.rf-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.rf-btn:hover {
  background: var(--ink-alt);
}

.rf-btn.secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.rf-btn.secondary:hover {
  border-color: var(--ink);
}

.rf-btn.small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.rf-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--mist);
  color: var(--ink);
  border: 1px solid var(--line);
}

.rf-tag.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.rf-input, .rf-textarea {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.15s ease;
}

.rf-select {
  width: 100%;
  height: 38px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.3;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.rf-input:focus, .rf-select:focus, .rf-textarea:focus {
  border-color: var(--ink);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- 模块 1: AI 员工对话总控 ---------- */
.chat-box {
  display: flex;
  flex-direction: column;
  height: 580px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-bubble {
  padding: 16px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--mist);
  font-size: 14px;
  line-height: 1.65;
}

.msg-bubble.user {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  align-self: flex-end;
  max-width: 85%;
}

.msg-bubble.assistant {
  background: var(--paper);
  border-color: var(--line);
  max-width: 94%;
}

.msg-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 6px;
}

.action-card {
  margin-top: 14px;
  padding: 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 4px;
}

.action-card-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}

.action-card-summary {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.action-card-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-input-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

/* ---------- 任务卡片流 & 进度条 ---------- */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 4px;
  background: var(--mist);
}

.task-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.task-item-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.task-item-step {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.3s ease;
}

/* ---------- 表格 ---------- */
.rf-table {
  width: 100%;
  border-collapse: collapse;
}

.rf-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  padding: 10px 12px;
  border-bottom: 2px solid var(--ink);
}

.rf-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}

/* ---------- 沙盒微信对话窗 ---------- */
.sandbox-window {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  height: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sandbox-header {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
}

.sandbox-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sandbox-presets {
  padding: 8px 16px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--mist);
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
}

.preset-chip:hover {
  border-color: var(--ink);
}

.preset-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- 1:1 炼刀 AI 完整三级菜单与专属组件样式 (VI 2.1) ---------- */
:root {
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.sidebar {
  width: 256px;
  padding: 12px 10px;
}

.menu-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.menu-scroll-area::-webkit-scrollbar {
  width: 4px;
}
.menu-scroll-area::-webkit-scrollbar-thumb {
  background: #2e2e2e;
  border-radius: 2px;
}

.menu-divider {
  height: 1px;
  background: #262626;
  margin: 5px 8px;
}

.menu-group-title {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #8c8c8c;
  padding: 5px 12px 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  min-height: 33px;
  padding: 0 12px;
  margin-bottom: 1px;
  font-size: 12.5px;
  border-radius: 5px;
}

.nav-parent-btn {
  width: 100%;
  min-height: 33px;
  padding: 0 12px;
  margin-bottom: 1px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #c7c7c7;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-parent-btn:hover {
  color: #ffffff;
  background: #1c1c1b;
}

.nav-parent-btn .arrow {
  font-size: 10px;
  color: #8c8c8c;
  transition: transform 0.18s ease;
}

.nav-parent-group.open > .nav-parent-btn .arrow {
  transform: rotate(90deg);
  color: #ffffff;
}

.nav-sub-list {
  display: none;
  flex-direction: column;
  padding-left: 14px;
  margin: 2px 0 6px 12px;
  border-left: 1px solid #2b2b2b;
}

.nav-parent-group.open > .nav-sub-list {
  display: flex;
}

.nav-sub-item {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  margin-bottom: 2px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #9e9e9e;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}

.nav-sub-item:hover {
  color: #ffffff;
  background: #1c1c1b;
}

.nav-sub-item.active {
  color: #111111;
  background: #ffffff;
  font-weight: 900;
}

/* 页面内二级 Tab 栏 */
.sub-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.sub-tab-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sub-tab-btn:hover {
  color: var(--ink);
  background: var(--mist);
}

.sub-tab-btn.active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

/* GEO 6 步链路进度条 (1:1 复刻 Mf 组件) */
.geo-stepper-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
}

.geo-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.geo-step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--mist);
  cursor: pointer;
  flex: 1;
  transition: all 0.15s ease;
}

.geo-step-node.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.geo-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.geo-step-node.active .geo-step-num {
  background: var(--paper);
  color: var(--ink);
}

/* 顶栏右侧用户下拉框 (1:1 复刻 Wm 249px 浮层) */
.user-dropdown-wrap {
  position: relative;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 256px;
  background: #ffffff;
  color: #111111;
  border: 1px solid #111111;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  z-index: 1200;
  padding: 14px 0;
}

.user-dropdown-menu.open {
  display: flex;
  flex-direction: column;
}

/* 右下角悬浮「启动程序 / 恢复机器人」主控圆钮 (1:1 复刻 dp 组件) */
.rpa-float-launcher {
  position: fixed;
  right: 22px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  z-index: 950;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.rpa-float-launcher:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
}

.rpa-float-launcher.running {
  background: #ffffff;
  color: #111111;
  border: 2px solid #111111;
}

/* 聊天与任务卡片兼容样式 */
.chat-msg {
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.65;
}

.chat-msg.user {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  align-self: flex-end;
  max-width: 86%;
}

.chat-role-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 6px;
}

.chat-msg.user .chat-role-label {
  color: #a3a3a3;
}

.action-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.task-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 4px;
  background: var(--mist);
}

.task-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.task-title {
  font-size: 13px;
  font-weight: 900;
}

.task-meta {
  font-size: 11px;
  color: var(--stone);
  margin-bottom: 6px;
}

.progress-bar {
  height: 100%;
  background: var(--ink);
  transition: width 0.25s ease;
}

.wx-bubble {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 85%;
  border: 1px solid var(--line);
  background: var(--paper);
}

.wx-bubble.customer {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ==================== DeepSeek Harness 1:1 沉浸式工作台样式 ==================== */
.ds-harness-shell {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: calc(100vh - 116px);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ds-harness-topbar {
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid #f0f0EE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.ds-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #525252;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds-icon-btn:hover {
  background: #f3f2ef;
  color: #111111;
  border-color: #dedede;
}

.ds-harness-body {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

/* 左侧可折叠项目工作区与历史抽屉 */
.ds-history-drawer {
  width: 276px;
  border-right: 1px solid #ececeb;
  background: #fafaf9;
  display: none;
  flex-direction: column;
  padding: 14px 12px;
  gap: 8px;
  flex-shrink: 0;
  overflow-y: auto;
}

.ds-history-drawer.open {
  display: flex;
}

.ds-project-card {
  border: 1px solid #e6e6e4;
  background: #ffffff;
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds-project-card:hover {
  border-color: #111111;
  background: #f6f5f2;
}

.ds-project-card.active {
  border-color: #111111;
  border-left: 3.5px solid #111111;
  background: #f3f2ef;
}

/* 右侧可折叠产物预览画板 (Artifact Preview) */
.ds-artifact-drawer {
  width: 360px;
  border-left: 1px solid #ececeb;
  background: #fafaf9;
  display: none;
  flex-direction: column;
  padding: 16px;
  flex-shrink: 0;
  overflow-y: auto;
}

.ds-artifact-drawer.open {
  display: flex;
}

/* 中央主舞台 */
.ds-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 22px;
  overflow: hidden;
  background: #ffffff;
}

.ds-stage.hero-centered {
  justify-content: center;
  gap: 28px;
}

/* 探索未至之境 Hero 标题区 */
.ds-hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  user-select: none;
}

.ds-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #111111;
  letter-spacing: 0.01em;
}

.ds-hero-badge {
  background: #f3f2ef;
  color: #525252;
  border: 1px solid #dedede;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* 对话消息流容器 */
.ds-stream-wrap {
  width: 100%;
  max-width: 820px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 10px 18px 4px;
}

.ds-turn-user {
  align-self: flex-end;
  max-width: 78%;
  background: #f3f2ef;
  color: #111111;
  border: 1px solid #e4e4e2;
  padding: 12px 16px;
  border-radius: 14px 14px 4px 14px;
  font-size: 14px;
  line-height: 1.65;
}

.ds-turn-ai {
  align-self: stretch;
  background: #ffffff;
  color: #111111;
  padding: 2px 4px 12px;
  font-size: 14px;
  line-height: 1.72;
}

.ds-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* DeepSeek 原生可折叠「已深度思考」面板 */
.ds-thought-details {
  margin: 4px 0 10px;
  border-radius: 8px;
  background: #f8f8f6;
  border: 1px solid #ececeb;
  overflow: hidden;
}

.ds-thought-details summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #6b6b6b;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.ds-thought-details summary::-webkit-details-marker {
  display: none;
}

.ds-thought-details summary:hover {
  color: #111111;
  background: #f3f2ef;
}

.ds-thought-body {
  padding: 6px 12px 10px;
  border-top: 1px dashed #e6e6e4;
  font-size: 12.5px;
  line-height: 1.6;
  color: #666666;
}

/* DeepSeek Harness 专属：成稿产物卡片 (Artifact Card) */
.ds-artifact-card {
  margin: 10px 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dedede;
  background: #fafaf9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds-artifact-card:hover {
  border-color: #111111;
  background: #f3f2ef;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ds-artifact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* DeepSeek 原生轻量化底部微操作栏 */
.ds-turn-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.ds-mini-action-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #737373;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds-mini-action-btn:hover {
  background: #f3f2ef;
  border-color: #e2e2df;
  color: #111111;
}

/* DeepSeek 原生末尾追问气泡 (Follow-up Chips) */
.ds-followup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ds-followup-chip {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid #e6e6e4;
  background: #fafaf9;
  color: #404040;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.ds-followup-chip:hover {
  border-color: #111111;
  background: #f3f2ef;
  color: #111111;
}

/* Rich Markdown 排版样式 */
.ds-md-body h2,
.ds-md-body h3,
.ds-md-body h4 {
  font-size: 14.5px;
  font-weight: 900;
  color: #111111;
  margin: 14px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ecebe6;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ds-md-body h3::before {
  content: "■";
  font-size: 10px;
  color: #111111;
}

.ds-md-body p {
  margin: 7px 0;
  line-height: 1.75;
}

.ds-md-body strong {
  color: #111111;
  font-weight: 800;
  background: linear-gradient(180deg, transparent 62%, rgba(217, 56, 30, 0.14) 62%);
  padding: 0 2px;
  border-radius: 2px;
}

.ds-md-body ul,
.ds-md-body ol {
  margin: 6px 0 12px 20px;
  padding: 0;
}

.ds-md-body li {
  margin-bottom: 7px;
  line-height: 1.75;
}

.ds-md-body code {
  background: #f3f2ef;
  border: 1px solid #e2e2df;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: var(--font-en), var(--font);
}

.ds-code-block {
  margin: 10px 0 14px;
  border: 1px solid #deded9;
  border-radius: 10px;
  background: #faf9f7;
}

.ds-code-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #f2f1ed;
  border-bottom: 1px solid #e4e3de;
  border-radius: 9px 9px 0 0;
  font-size: 11.5px;
  font-weight: 800;
  color: #3a3a3a;
}

.ds-code-copy-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #d4d3ce;
  background: #ffffff;
  color: #111111;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds-code-copy-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.ds-code-pre {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.72;
  color: #181818;
  white-space: pre-wrap;
  word-break: break-word;
}

.ds-md-body blockquote {
  margin: 8px 0 14px;
  padding: 10px 14px;
  background: #faf8f5;
  border: 1px solid #e7e5e0;
  border-left: 3.5px solid #d9381e;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.68;
  color: #1f1f1f;
}

.ds-md-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 12.5px;
}

.ds-md-body th,
.ds-md-body td {
  border: 1px solid #e2e2df;
  padding: 8px 10px;
  text-align: left;
}

.ds-md-body th {
  background: #f3f2ef;
  font-weight: 800;
  color: #111111;
}

.ds-md-body hr {
  border: none;
  border-top: 1px dashed #e2e2df;
  margin: 12px 0;
}

/* Harness 底部/居中 Composer Dock (1:1 对齐图2) */
.ds-composer-dock {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.ds-toolbar-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.ds-pill-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #262626;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds-pill-btn:hover,
.ds-pill-btn.active {
  background: #f3f2ef;
  border-color: #dedede;
  color: #111111;
}

.ds-pill-select {
  height: 30px;
  max-width: 240px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #262626;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.ds-pill-select:hover,
.ds-pill-select:focus {
  background: #f3f2ef;
  border-color: #dedede;
}

/* 圆角大输入框卡片 */
.ds-composer-box {
  background: #ffffff;
  border: 1px solid #e2e2df;
  border-radius: 18px;
  padding: 12px 15px 10px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-composer-box:focus-within {
  border-color: #111111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.ds-attached-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ds-attached-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f3f2ef;
  border: 1px solid #dedede;
  font-size: 11.5px;
  font-weight: 700;
  color: #111111;
}

.ds-textarea-wrap {
  position: relative;
  width: 100%;
  min-height: 44px;
}

.ds-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.55;
  color: #111111;
  background: transparent;
  min-height: 44px;
  max-height: 160px;
  position: relative;
  z-index: 2;
}

.ds-ghost-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  display: inline;
  font-size: 13.5px;
  line-height: 1.55;
  color: #9ca3af;
}

.ds-ghost-text {
  pointer-events: auto;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ds-ghost-text:hover {
  color: #525252;
}

.ds-ghost-tab-inline {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 4px;
  border: 1px solid #d4d4d0;
  background: #f3f2ef;
  color: #262626;
  font-family: var(--font-en), var(--font);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  vertical-align: middle;
}

.ds-ghost-tab-inline:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.ds-ghost-cycle-inline {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 19px;
  margin-left: 3px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  cursor: pointer;
  vertical-align: middle;
}

.ds-ghost-cycle-inline:hover {
  background: #f3f2ef;
  color: #111111;
}

.ds-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.ds-footer-left,
.ds-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-footer-right .ds-pill-select {
  max-width: 230px;
}

.ds-plus-circle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #dedede;
  background: #f8f8f6;
  color: #262626;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ds-plus-circle-btn:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.ds-send-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #111111;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ds-send-circle-btn:hover {
  transform: scale(1.06);
}

/* `/` 指令与 `@` 知识库浮层菜单 */
.ds-popover-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 360px;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 8px;
  z-index: 200;
  flex-direction: column;
  gap: 4px;
}

.ds-popover-menu.open {
  display: flex;
}

.ds-popover-item {
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ds-popover-item:hover {
  background: #f3f2ef;
}


