/* 问数全页壳 — 对标企查查在线体验 DEMO */

html,
body.wenshu-body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

/* 顶栏 fixed：壳子整体让出高度，避免侧栏顶部被挡 / 高度算错 */
.wenshu-body.site-shell {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-top: var(--header-h, 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wenshu-body .header {
  flex-shrink: 0;
}

.wenshu-main {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wenshu-app {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  background: #f8fafc;
}

.wenshu-sidebar {
  box-sizing: border-box;
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  background: #fff;
  border-right: 1px solid #e8ebf0;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  z-index: 2;
}

.wenshu-btn-new {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1a1d26;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wenshu-btn-new:hover {
  border-color: #c7d2fe;
  background: #f8faff;
}

.wenshu-nav-group-title {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wenshu-nav-group-title:hover { background: #f3f4f6; }
.wenshu-nav-group.collapsed .chev { transform: rotate(-90deg); }
.wenshu-nav-group.collapsed .wenshu-nav-sub { display: none; }
.wenshu-nav-sub { padding: 2px 0 4px 10px; display: flex; flex-direction: column; gap: 2px; }

.wenshu-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  color: #64748b;
}

.wenshu-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wenshu-nav-group-title .chev {
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.wenshu-nav-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  color: #1a1d26;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wenshu-nav-item .wenshu-ico { color: #64748b; }
.wenshu-nav-item.active .wenshu-ico { color: #2f6bff; }

.wenshu-nav-item:hover { background: #f3f4f6; }
.wenshu-nav-item.active {
  background: #eaf0ff;
  color: #2f6bff;
  font-weight: 600;
}

.wenshu-hist {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 8px;
}

.wenshu-hist-label {
  font-size: 12px;
  color: #6b7280;
  margin: 8px 8px 6px;
}

.wenshu-hist-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wenshu-hist-item:hover,
.wenshu-hist-item.active { background: #f3f4f6; }

.wenshu-panel {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #f8fafc 0%, #f7fafc 50%, #f6f9fc 100%);
}

.wenshu-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wenshu-deco img {
  position: absolute;
  opacity: 0.2;
  user-select: none;
  -webkit-user-drag: none;
}

.wenshu-deco .mol-methanol { top: 12%; left: 8%; width: min(200px, 20vw); }
.wenshu-deco .mol-ethanol { top: 10%; right: 8%; width: min(260px, 24vw); }
.wenshu-deco .mol-glycol { bottom: 16%; left: 36%; width: min(300px, 28vw); }

.wenshu-view {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
}

.wenshu-view.is-active { display: flex; }

#bot-page-root,
#bot-page-root.bot-chat-root,
#bot-page-root .bot-chat-shell,
#bot-page-root .bot-chat-main {
  height: 100%;
  min-height: 0;
}

#bot-page-root.bot-chat-root--wenshu .bot-chat-shell {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* 兜底：问数模式绝不显示旧 Bot 内页头 */
#bot-page-root.bot-chat-root--wenshu .bot-chat-header {
  display: none !important;
}

#bot-page-root.bot-chat-root--wenshu .bot-chat-main {
  max-width: none;
  margin: 0;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: transparent;
  padding: 0;
  gap: 0;
}

/* DEMO：空态标题+输入框整体垂直水平居中 */
#bot-page-root.bot-chat-root--wenshu.is-empty .bot-chat-main {
  justify-content: center;
  align-items: center;
}

#bot-page-root.bot-chat-root--wenshu.is-empty .bot-chat-messages,
#bot-page-root.bot-chat-root--wenshu.is-empty .bot-chat-tasks,
#bot-page-root.bot-chat-root--wenshu.is-empty .bot-chat-status,
#bot-page-root.bot-chat-root--wenshu.is-empty .bot-chat-error:empty,
#bot-page-root.bot-chat-root--wenshu.is-empty .bot-chat-error[hidden] {
  display: none !important;
}

#bot-page-root.bot-chat-root--wenshu .wenshu-empty-hero {
  display: none;
  text-align: center;
  width: min(880px, calc(100% - 48px));
  max-width: 880px;
  padding: 0 24px;
  margin: 0 0 24px;
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
}

#bot-page-root.bot-chat-root--wenshu.is-empty .wenshu-empty-hero {
  display: block;
}

#bot-page-root.bot-chat-root--wenshu .wenshu-empty-hero h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
}

#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .wenshu-empty-hero {
  display: none;
}

/*
 * 有对话：整列同一宽度（本轮任务 / 消息 / 状态 / 输入框），
 * 避免各块各自 max-width 造成「一截一截」
 */
#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-main {
  width: min(1080px, calc(100% - 48px));
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 0 0;
  box-sizing: border-box;
  align-items: stretch;
  gap: 0;
}

#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-error,
#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-tasks,
#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-messages,
#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-status,
#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .wenshu-composer-wrap {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  align-self: stretch;
  box-sizing: border-box;
}

#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-tasks {
  margin: 0 0 8px;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: auto;
  padding: 4px 0 8px;
  gap: 10px;
}

#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-messages .agent-msg {
  max-width: min(100%, 860px);
}

#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-messages .agent-tool-card {
  max-width: 100%;
  width: 100%;
  align-self: stretch;
}

#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .bot-chat-status {
  margin: 0;
  padding: 2px 2px 10px;
  font-size: 13px;
  color: #64748b;
}

#bot-page-root.bot-chat-root--wenshu .wenshu-composer-wrap {
  width: min(880px, calc(100% - 48px));
  max-width: 880px;
  padding: 8px 24px 18px;
  margin: 0 auto;
  position: relative;
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
}

#bot-page-root.bot-chat-root--wenshu:not(.is-empty) .wenshu-composer-wrap {
  margin-top: auto;
  width: 100%;
  max-width: none;
  padding: 4px 0 16px;
}

#bot-page-root.bot-chat-root--wenshu.is-empty .wenshu-composer-wrap {
  padding: 0 24px 8px;
  margin: 0;
}

.wenshu-composer {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #c7d7ff;
  border-radius: 16px;
  padding: 12px 14px 10px;
  box-shadow: 0 4px 18px rgba(47, 107, 255, 0.06);
}

.wenshu-composer textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.5;
  min-height: 56px;
  font-family: inherit;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}

.wenshu-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.wenshu-composer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wenshu-plus-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #2f6bff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wenshu-plus-btn .wenshu-ico {
  width: 18px;
  height: 18px;
  color: #2f6bff;
}

.wenshu-plus-btn:hover { background: #e5e7eb; }

.wenshu-send-btn {
  border: none;
  background: #2f6bff;
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
}

.wenshu-quick {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.wenshu-quick[hidden] { display: none; }

.wenshu-quick button {
  border: 1px solid #e8ebf0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
}

.wenshu-quick button:hover {
  border-color: #c7d2fe;
  background: #f8faff;
}

.wenshu-plus-menu,
.wenshu-skill-sheet {
  position: fixed;
  left: 0;
  top: 0;
  bottom: auto;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  z-index: 80;
}

.wenshu-plus-menu.hidden,
.wenshu-skill-sheet.hidden { display: none; }

.wenshu-plus-menu { min-width: 148px; overflow: hidden; }

.wenshu-plus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: #fff;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #1a1d26;
}

.wenshu-plus-item .wenshu-ico { color: #2f6bff; }

.wenshu-plus-item:hover { background: #f8faff; }

.wenshu-skill-sheet {
  width: min(360px, calc(100% - 48px));
  border-radius: 16px;
  padding: 12px;
  max-height: min(420px, 60vh);
  display: flex;
  flex-direction: column;
}

.wenshu-connector-sheet {
  width: min(300px, calc(100% - 48px));
  padding: 12px 10px 10px;
}

.wenshu-sheet-note {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.wenshu-sheet-empty {
  margin: 8px 4px;
  font-size: 13px;
  color: #6b7280;
}

.wenshu-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wenshu-sheet-head > span {
  flex: 1;
  min-width: 0;
}

.wenshu-sheet-done {
  border: none;
  background: #eef3ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.wenshu-sheet-done:hover { background: #dbe6ff; }

.wenshu-sheet-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.wenshu-sheet-head button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.wenshu-sheet-head button:hover { background: #f1f5f9; }

.wenshu-sheet-head button.wenshu-sheet-done:hover { background: #dbe6ff; }

.wenshu-sheet-head button .wenshu-ico { color: #475569; }

.wenshu-sheet-search {
  border: 1.5px solid #2f6bff;
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.wenshu-sheet-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
}

.wenshu-sheet-list {
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.wenshu-sheet-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
}

.wenshu-sheet-row:hover { background: #f8fafc; }

.wenshu-sheet-row.is-selected {
  background: #eef3ff;
}

.wenshu-sheet-row.is-selected:hover {
  background: #e4ecff;
}

.wenshu-sheet-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #fff;
  line-height: 1;
}

.wenshu-sheet-row.is-selected .wenshu-sheet-check {
  border-color: #2f6bff;
  background: #2f6bff;
}

.wenshu-sheet-row-body {
  flex: 1;
  min-width: 0;
}

.wenshu-sheet-row strong { display: block; font-size: 13px; margin-bottom: 2px; }
.wenshu-sheet-row .wenshu-sheet-row-body > span {
  font-size: 12px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wenshu-sheet-empty {
  margin: 16px 8px;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

.wenshu-sheet-row--conn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wenshu-sheet-conn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 8px;
  border-radius: 10px;
  box-sizing: border-box;
  cursor: default;
  user-select: none;
}

.wenshu-sheet-conn-row:hover {
  background: #f8fafc;
}

.wenshu-sheet-conn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}

.wenshu-sheet-conn-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1d26;
  line-height: 1.3;
}

.wenshu-conn-switch {
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.92;
}

.wenshu-conn-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.wenshu-conn-switch.is-on {
  background: #22c55e;
}

.wenshu-conn-switch.is-on::after {
  transform: translateX(18px);
}

.wenshu-conn-sheet-foot {
  margin: 8px 4px 0;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  text-align: center;
}

.wenshu-sheet-conn-body {
  flex: 1;
  min-width: 0;
}

.wenshu-sheet-conn-chev {
  color: #94a3b8;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.wenshu-sheet-conn-chev .wenshu-ico {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.wenshu-sheet-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 6px 10px 48px;
}

.wenshu-sheet-tools code {
  font-size: 11px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 6px;
  padding: 3px 7px;
}

.bot-skill-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.bot-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef3ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.bot-skill-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.bot-quota-link {
  color: #2f6bff;
  font-weight: 600;
  margin-left: 6px;
}

.wenshu-catalog-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
  width: min(1120px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.wenshu-back {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a1d26;
}

.wenshu-back .wenshu-ico { color: #475569; }

.wenshu-back:hover { background: #f3f4f6; }
.wenshu-catalog-title { font-size: 15px; font-weight: 700; }
.wenshu-search { margin-left: auto; }
.wenshu-search input {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 14px;
  min-width: 200px;
  font-size: 13px;
}

.wenshu-catalog-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.wenshu-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wenshu-pill {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}
.wenshu-pill.active {
  border-color: #bfdbfe;
  background: #eaf0ff;
  color: #2f6bff;
  font-weight: 600;
}

/* 对齐 Skill 广场：固定内容宽 + 一行 4 卡 */
.wenshu-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .wenshu-skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wenshu-sidebar {
    flex-basis: 200px;
    width: 200px;
    max-width: 200px;
  }
}

@media (max-width: 900px) {
  .wenshu-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wenshu-skill-grid { grid-template-columns: 1fr; }
}

.wenshu-skill-card {
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}

.wenshu-skill-card h3 { margin: 0; font-size: 15px; }
.wenshu-skill-card p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wenshu-try {
  border: none;
  background: transparent;
  color: #2f6bff;
  cursor: pointer;
  font-size: 13px;
  margin-left: auto;
}

.wenshu-connector-panel {
  max-width: 720px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 16px;
  padding: 8px 8px 4px;
}

.wenshu-connector-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
}

.wenshu-connector-phys {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wenshu-connector-phys strong {
  font-size: 14px;
  color: #0f172a;
}

.wenshu-connector-phys span {
  font-size: 12px;
  color: #6b7280;
}

.wenshu-connector-row {
  display: block;
  padding: 6px 6px;
  border-radius: 10px;
}

.wenshu-connector-row:hover { background: #f8fafc; }

.wenshu-connector-main {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 6px 4px;
  width: 100%;
  min-width: 0;
}

.wenshu-connector-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.wenshu-connector-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.wenshu-connector-row .name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.wenshu-connector-row .meta {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wenshu-connector-chev {
  color: #94a3b8;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.wenshu-connector-chev .wenshu-ico {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.wenshu-connector-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 8px 10px 52px;
}

.wenshu-connector-tools code {
  font-size: 11px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 6px;
  padding: 3px 7px;
}

.wenshu-connector-note {
  margin: 8px 10px 12px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* 窄屏：侧栏改为可叠加抽屉，默认仍展开；绝不 display:none 整栏消失 */
@media (max-width: 760px) {
  .wenshu-app {
    position: relative;
  }

  .wenshu-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    flex-basis: 220px;
    width: 220px;
    max-width: min(220px, 86vw);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  }

  .wenshu-panel {
    width: 100%;
  }
}
