/* 20261024 学生端题目解析富文本排版修复
   原因：.jiexiboxS span 被设为 flex 容器，富文本里的多个 <p>/<table>
   被当成并排的 flex 子项，挤成一条条竖排窄列。
   处理：解析内容容器恢复为普通块级流，内部表格/图片自适应宽度。 */
.jiexiboxS span.hhh {
  display: block !important;
  width: 92% !important;
  height: 92% !important;
  max-height: 92% !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  padding: 2px 6px !important;
  -webkit-overflow-scrolling: touch;
}
.jiexiboxS span.hhh > * { max-width: 100% !important; box-sizing: border-box !important; }
.jiexiboxS span.hhh p { margin: 6px 0 !important; white-space: normal !important; }
.jiexiboxS span.hhh img { max-width: 100% !important; height: auto !important; }
.jiexiboxS span.hhh table { width: 100% !important; max-width: 100% !important; border-collapse: collapse !important; }
.jiexiboxS span.hhh td, .jiexiboxS span.hhh th { vertical-align: top; }
.jiexiboxS span.hhh pre { max-width: 100% !important; white-space: pre-wrap !important; word-break: break-word !important; }
.jiexiboxS span.hhh .katex-display { max-width: 100% !important; overflow-x: auto !important; overflow-y: hidden !important; }

/* 20261106 文本解析框“拖动条/滚动条”跨浏览器可见性修复
   根因：全局 index.cc298949.css 里有 ::-webkit-scrollbar{width:0!important}，
   把解析结果滚动容器（.jiexiboxS span.hhh）的滚动条压成 0 宽——
   Chrome/Edge/微信内核等 Blink/WebKit 下看不到滚动条；Firefox 不支持该伪元素故照常显示，
   于是出现“有些电脑能显示、有些不能”。
   处理：仅针对解析结果的滚动容器，用更高优先级 + 双引擎规则强制“占位式经典滚动条”，
   不受系统“自动隐藏滚动条”设置影响；正文文案内容不变。 */
.jiexiboxS,
.jiexiboxS span.hhh {
  scrollbar-width: auto !important;              /* Firefox：经典滚动条 */
  scrollbar-color: #7aa7e8 #eaf0fa !important;   /* Firefox：滑块/轨道配色 */
}
.jiexiboxS::-webkit-scrollbar,
.jiexiboxS span.hhh::-webkit-scrollbar {
  -webkit-appearance: none !important;
  display: block !important;
  width: 14px !important;
  height: 14px !important;
}
.jiexiboxS::-webkit-scrollbar-track,
.jiexiboxS span.hhh::-webkit-scrollbar-track {
  background: #eaf0fa !important;
  border-radius: 7px !important;
}
.jiexiboxS::-webkit-scrollbar-thumb,
.jiexiboxS span.hhh::-webkit-scrollbar-thumb {
  background: #7aa7e8 !important;
  border-radius: 7px !important;
  border: 3px solid #eaf0fa !important;
  min-height: 24px !important;
}
.jiexiboxS::-webkit-scrollbar-thumb:hover,
.jiexiboxS span.hhh::-webkit-scrollbar-thumb:hover {
  background: #5588d6 !important;
}
