/* ===== bn-studio-guard.css =====
 * studio 页面隔离补丁（2026-10-19）
 * 主题 panyou/style.css 已从本页移除，这里补回页眉所需的少量结构规则，
 * 并为 jz-* 区域重置浏览器与旧主题的默认值，避免布局塌陷。
 */

/* --- 1. 基础重置（替代 panyou style.css 第2/6/7/32/34 行造成的破坏）--- */
html, body { height: auto; }
body.jz-body {
  margin: 0;
  min-width: 0;              /* 主题原为 1670px，导致窄屏横向错位 */
  font-family: "Microsoft Yahei", -apple-system, "PingFang SC", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  background: #f6f8fc;
  -webkit-font-smoothing: antialiased;
}
body.jz-body *,
body.jz-body *::before,
body.jz-body *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
/* 主题给所有元素加了 transition:.5s，会让首屏渲染像卡顿 */
body.jz-body .jz-wrap,
body.jz-body .jz-wrap * { transition: none; }
body.jz-body .jz-wrap a { text-decoration: none; color: inherit; }
body.jz-body .jz-wrap button {
  font: inherit;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
body.jz-body .jz-wrap ul,
body.jz-body .jz-wrap ol { list-style: none; margin: 0; padding: 0; }
body.jz-body .jz-wrap li { float: none; }
body.jz-body .jz-wrap img { max-width: 100%; height: auto; border: 0; }
body.jz-body .jz-wrap em,
body.jz-body .jz-wrap i { font-style: normal; }

/* --- 2. 页眉结构（原依赖主题 CSS，此处最小补齐）--- */
.jz-header { position: relative; z-index: 20; background: #fff; }
.tx-header {
  position: relative;
  /* DISABLED-2026-10-19 统一页头 */ /* background: #fff; */
  /* DISABLED-2026-10-19 统一页头 */ /* box-shadow: 0 1px 0 rgba(0, 0, 0, .06); */
}
.tx-header .tx-center {
  max-width: 1670px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.tx-header .tx-center::after { content: ""; display: table; clear: both; }
.tx-header .fl { float: left; }
.tx-header .fr { float: right; }
.tx-header .tx-head-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.tx-header .tx-head-logo img { display: block; height: 44px; width: auto; }
.tx-header .tx-head-logo .img2 { display: none; }
.tx-header .fr { display: flex; flex-direction: column; align-items: flex-end; flex: 1 1 auto; min-width: 0; }
.tx-header .tx-head-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: #888;
  padding: 6px 0 2px;
}
.tx-header .tx-head-top .pos-text { color: #999; font-size: 14px; }
.tx-header .tx-head-top h4 { margin: 0; }
.tx-header .tx-head-top h4 img,
.tx-header .tx-head-top h3 img { display: block; height: 18px; width: auto; }
.tx-header .tx-head-top h3 { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.tx-header .tx-head-top .kexin { float: none !important; margin-right: 0 !important; }
.tx-header .tx-head-top > i { display: none; }
.tx-header .tx-head-top .wencode { color: #666; font-size: 14px; }
.tx-header .tx-head-top .en {
  width: 18px; height: 18px;
  background: #999;
  border-radius: 2px;
  display: inline-block;
  font-size: 0;
}
.tx-header .tx-head-top .search {
  width: 18px; height: 18px;
  border: 2px solid #999;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.tx-header .tx-head-top .search::after {
  content: "";
  position: absolute;
  right: -5px; bottom: -4px;
  width: 8px; height: 2px;
  background: #999;
  transform: rotate(45deg);
}
.tx-header .clear { clear: both; }
.tx-header .tx-nav-button { display: none; }
.tx-header .tx-head-nav { width: 100%; display: flex; justify-content: flex-end; }
.tx-header .tx-head-nav > i { display: none; }
.tx-header .tx-head-nav .menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tx-header .tx-head-nav .menu > li { float: none; margin: 0; }
.tx-header .tx-head-nav .menu > li > a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}
.tx-header .tx-head-nav .menu > li > a:hover { color: #3b95ff; }

/* 搜索浮层：未点开时不该占位 */
.tx-serch-box { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); }
.tx-serch-box.on { display: block; }
.tx-serch-box .tx-serch-box-main { display: none; }

/* --- 3. 主体区：hero 与对话区的呼吸感 --- */
body.jz-body .jz-wrap {
  padding: 24px 0 60px;
}
body.jz-body .jz-center {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
body.jz-body .jz-hero { padding: 32px 0 24px; text-align: center; }
body.jz-body .jz-hero-t { margin: 0 0 12px; font-size: 30px; line-height: 1.35; color: #111; font-weight: 600; }
body.jz-body .jz-hero-p { margin: 0 auto 20px; max-width: 760px; font-size: 14px; line-height: 1.75; color: #667; }
body.jz-body .jz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
body.jz-body .jz-chip {
  padding: 8px 16px;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  background: #fff;
  color: #445;
  font-size: 14px;
  white-space: nowrap;
}
body.jz-body .jz-chip:hover { border-color: #3b95ff; color: #3b95ff; }

/* 对话区：必须自立高度，否则被父级 flex 压成 0 */
body.jz-body .jz-main {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-top: 16px;
}
body.jz-body .jz-chat {
  flex: 1 1 62%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  background: #fff;
  border: 1px solid #e6ecf3;
  border-radius: 12px;
  overflow: hidden;
}
body.jz-body .jz-chat-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  background: #fafcff;
}
body.jz-body .jz-chat-hd .jz-chat-av {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #3b95ff; color: #fff;
  font-size: 14px; font-weight: 600;
}
body.jz-body .jz-chat-hd > div { flex: 1 1 auto; min-width: 0; }
body.jz-body .jz-chat-hd b { display: block; font-size: 14px; color: #222; font-weight: 600; }
body.jz-body .jz-chat-hd em { display: block; font-size: 14px; color: #8a94a6; }

body.jz-body .jz-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}
body.jz-body .jz-tab {
  padding: 8px 14px;
  font-size: 14px;
  color: #7b8698;
  border-bottom: 2px solid transparent;
  background: none;
  text-decoration: none;
}
body.jz-body .jz-tab.on { color: #3b95ff; border-bottom-color: #3b95ff; font-weight: 600; }

body.jz-body .jz-pane { display: none; flex: 1 1 auto; min-height: 0; flex-direction: column; }
body.jz-body .jz-pane.on { display: flex; }

body.jz-body .jz-msgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}
body.jz-body .jz-chat-ft {
  flex: 0 0 auto;
  border-top: 1px solid #eef2f7;
  padding: 10px 16px 14px;
  background: #fbfcfe;
}
body.jz-body .jz-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
body.jz-body .jz-send-v { display: flex; flex-direction: column; gap: 8px; }
body.jz-body .jz-ta {
  width: 100%;
  resize: none;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
}
body.jz-body .jz-ta:focus { border-color: #3b95ff; box-shadow: 0 0 0 3px rgba(59,149,255,.12); }
body.jz-body .jz-send-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.jz-body .jz-send-hint { font-size: 14px; color: #9aa4b5; }
body.jz-body .jz-send-tip { margin: 8px 0 0; font-size: 14px; color: #9aa4b5; }
body.jz-body .jz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid transparent;
}
body.jz-body .jz-btn-primary { background: #3b95ff; color: #fff; }
body.jz-body .jz-btn-primary:hover { background: #2f86ec; }
body.jz-body .jz-btn-ghost { background: #fff; color: #556; border-color: #dfe5ee; }
body.jz-body .jz-btn-ghost:hover { border-color: #3b95ff; color: #3b95ff; }
body.jz-body .jz-btn-sm { padding: 5px 12px; font-size: 14px; }

/* 侧栏同样自立高度 */
body.jz-body .jz-side {
  flex: 0 0 34%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  background: #fff;
  border: 1px solid #e6ecf3;
  border-radius: 12px;
  overflow: hidden;
}
body.jz-body .jz-side-hd { padding: 14px 16px; border-bottom: 1px solid #eef2f7; background: #fafcff; }
body.jz-body .jz-side-bd { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; }

/* --- 4. 窄屏 --- */
@media (max-width: 1080px) {
  body.jz-body .jz-main { flex-direction: column; }
  body.jz-body .jz-chat,
  body.jz-body .jz-side { flex: 1 1 auto; min-width: 0; min-height: 0; }
  body.jz-body .jz-chat { min-height: 520px; }
}
@media (max-width: 820px) {
  .tx-header .tx-center { flex-wrap: wrap; min-height: 0; padding: 10px 16px; }
  .tx-header .fr { align-items: stretch; }
  .tx-header .tx-head-top { justify-content: flex-start; }
  .tx-header .tx-head-nav { justify-content: flex-start; overflow-x: auto; }
  .tx-header .tx-head-nav .menu { justify-content: flex-start; }
}

/* --- 5. 内联 SVG 尺寸兜底 ---
   注释掉 panyou/swiper.min.css 后，其全局 svg{max-width:100%;max-height:100%}
   规则一并失效，.ba-dock 里两个无 width/height 的内联 svg 会按原始尺寸
   撑成 1400px+ 覆盖整个对话区。这里按作用域补回尺寸约束。 */
body.jz-body .ba-dock svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}
body.jz-body .ba-dock a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
/* 兜底：页面内任何未指定尺寸的裸 svg 都不许超过容器 */
body.jz-body svg:not([width]):not([height]) {
  max-width: 100%;
  max-height: 100%;
}

/* ============================================================
   6. 页头右区修正（2026-10-19）
   根因：第 2 节把 .fr 改成 flex column 且 .tx-head-top 改成 flex wrap，
        与主题 style.css 的 float 布局冲突：
        - .tx-head-top 宽度塌成 257px（内容被挤成竖排 192px 高）
        - b/i 空元素按主题规则（1px 宽白条 / 空b）失去尺寸约束
        - pos-text 绝对定位跑出容器 → 顶部大片空白 + 孤立汉字
   做法：页头一律回退到主题的 float 布局（style.css 已正确），
        仅保留「白底 + 显示 img2 彩色 logo」的换肤意图。
   ============================================================ */
body.jz-body .tx-header .tx-center {
  display: block;
  min-height: 0;
  padding: 0 20px;
  max-width: 1670px;
}
body.jz-body .tx-header .fr {
  display: block;
  float: right;
  flex: none;
  width: auto;
  min-width: 0;
  align-items: initial;
}
body.jz-body .tx-header .tx-head-top {
  display: block;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  font-size: inherit;
  text-align: left;
}
body.jz-body .tx-header .tx-head-top h4 { margin: 0; padding: 0 20px 0 46px; }
body.jz-body .tx-header .tx-head-logo { display: block; }
body.jz-body .tx-header .tx-head-logo img { height: auto; }
