/* 自定义tinymce样式 */
.preview-container p,
.preview-container div,
.preview-container span,
.preview-container h1,
.preview-container h2,
.preview-container h3,
.preview-container h4,
.preview-container h5,
.preview-container h6,
.preview-container ul,
.preview-container ol,
.preview-container li,
.preview-container blockquote,
.preview-container figure,
.preview-container figcaption,
.preview-container hr,
.preview-container code,
.preview-container iframe {
  padding: 0;
  margin: 0;
}
.preview-container h1,
.preview-container h2,
.preview-container h3,
.preview-container h4,
.preview-container h5,
.preview-container h6 {
  font-weight: bold;
  color: #000000;
  margin: 16px 0px;
}
.ellipsis {
  white-space: nowrap; /* 禁止换行 */
  overflow: hidden; /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 超出用省略号表示 */
}
.preview-container .mhys-shape {
  vertical-align: middle;
  font-size: 20px;
  display: inline-block;
}
.preview-container .charts-img {
  display: inline-block;
}
/* 视频样式 */
.preview-container .mhys-video-container {
  width: 90%;
  margin: 10px auto;
  padding: 1em;
  border: 1px dashed #e2e2e2;
  font-size: 20px;
}
.mhys-video-container .mhys-video-header {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: #a57ff1;
  margin-bottom: 20px;
}
.mhys-video-container .mhys-video-header-img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.mhys-video-container .mhys-video {
  width: 40em;
  height: 23em;
  margin: 1em auto;
  display: block;
  border-radius: 6px;
}
.mhys-video-container .mhys-video-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 14px;
  height: 50px;
  overflow: hidden;
  color: #0e3456;
  background: #f9fafb;
  border: 1px solid #e5eaef;
  border-radius: 2px;
}
.mhys-video-container .mhys-video-content-img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.mhys-video-container .mhys-video-content-title {
  flex: 1;
}
.mhys-video-container .mhys-video-content-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
/* 音频样式 */
.preview-container .mhys-audio-container {
  width: 90%;
  margin: 10px auto;
  padding: 1em;
  border: 1px dashed #e2e2e2;
  font-size: 20px;
}
.mhys-audio-container .mhys-audio-header {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: #ffa784;
  margin-bottom: 20px;
}
.mhys-audio-container .mhys-audio-header-img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.mhys-audio-container .mhys-audio-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 14px;
  height: 50px;
  overflow: hidden;
  color: #0e3456;
  background: #f9fafb;
  border: 1px solid #e5eaef;
  border-radius: 2px;
}
.mhys-audio-container .mhys-audio-content-img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.mhys-audio-container .mhys-audio-content-title {
  flex: 1;
}
.mhys-audio-container .mhys-audio-content-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* 附件下载 */
.preview-container .mhys-file-container {
  width: 90%;
  margin: 10px auto;
  padding: 1em;
  border: 1px dashed #e2e2e2;
  font-size: 20px;
}
.mhys-file-container .mhys-file-header {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: #0172ff;
  margin-bottom: 20px;
}
.mhys-file-container .mhys-file-header-img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.mhys-file-container .mhys-file-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 14px;
  height: 50px;
  overflow: hidden;
  color: #0e3456;
  background: #f9fafb;
  border: 1px solid #e5eaef;
  border-radius: 2px;
}
.mhys-file-container .mhys-file-content-img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.mhys-file-container .mhys-file-content-title {
  flex: 1;
}
.preview-container .mhys-file-content-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
/* 测验 */
.preview-container .mhys-test-container {
  width: 90%;
  margin: 10px auto;
  padding: 1em;
  border: 1px dashed #e2e2e2;
  font-size: 20px;
}
.mhys-test-container .mhys-test-header {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: #92c476;
  margin-bottom: 20px;
}
.mhys-test-container .mhys-test-header-img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.mhys-test-container .mhys-test-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 14px;
  height: 50px;
  overflow: hidden;
  color: #0e3456;
  background: #f9fafb;
  border: 1px solid #e5eaef;
  border-radius: 2px;
}
.mhys-test-container .mhys-test-content-img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.mhys-test-container .mhys-test-content-title {
  flex: 1;
}
.mhys-test-container .mhys-test-btn {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.preview-container img {
  display: block;
}
/* 画廊 */
.preview-container .mhys-gallery {
  width: 90%;
  font-size: 20px;
  margin: 2em auto;
}
.mhys-gallery .mhys-gallery-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  margin-top: 10px;
}
.mhys-gallery .swiper {
  width: 500px;
  margin: 0px auto;
  border-radius: 4px;
  overflow: hidden;
  --swiper-pagination-color: #00eeff; /* 两种都可以 */
}
.mhys-gallery .swiper .swiper-pagination-bullet {
  opacity: 0.8;
}
.mhys-gallery .swiper img {
  width: 100%;
}
.mhys-gallery .mhys-gallery-desc {
  font-size: 14px;
  color: #00151b;
  margin: 25px 0;
  text-align: center;
}
/* 气泡组件 */
.mhys-bubble-content {
  border-bottom: 2px dashed #1890ff;
}
.preview-container .mhys-bubble {
  display: inline-block;
  position: relative;
  font-size: 20px;
}
.mhys-bubble .mhys-bubble-img {
  width: 1em;
  height: 1em;
  vertical-align: baseline;
  cursor: pointer;
}
.mhys-bubble .mhys-bubble-tip {
  position: absolute;
  bottom: 1em;
  right: 1em;
  z-index: 99999;
  background-color: #1890ff;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  display: none;
  transition: all 1s;
  font-size: 14px;
  min-width: 5em;
  max-width: 20em;
}
.mhys-bubble:hover .mhys-bubble-tip {
  display: block;
}
.preview-container .mhys-iframe {
  width: 90%;
  margin: 40px auto;
}
.mhys-iframe .mce-object-iframe {
  width: 100%;
}
.preview-container .mhys-iframe iframe {
  width: 100%;
  height: 640px;
  border: none;
}

/** 去掉默认的背景颜色 */
.preview-container audio::-webkit-media-controls-enclosure {
  background-color: unset;
}

.mce-preview-object {
  border: none;
}
.preview-container .mhys-webpage {
  font-size: 20px;
}

/* 讨论 */
.preview-container .mhys-train-container,
.preview-container .mhys-talk-container {
  padding: 1em;
  border: 1px dashed #e2e2e2;
  font-size: 20px;
}

.preview-container .mhys-train-btn,
.preview-container .mhys-talk-btn,
.preview-container .mhys-test-btn {
  width: 5.2em;
}

.preview-container blockquote {
  border-left: 2px solid #ccc;
  margin-left: 1.5em;
  padding-left: 1em;
}

/* 交互式课件 */
.preview-container .mhys-courseware-container {
  font-size: 20px;
  width: 18em;
  height: 12.5em;
  background: #f4f9f9;
  border-radius: 0.5em;
  border: 2px solid #deeff0;
  padding: 0.5em;
  box-sizing: border-box;
  margin: 2em auto;
}
.mhys-courseware-container .mhys-courseware-header {
  height: 1.3em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
}
.mhys-courseware-header .mhys-courseware-title {
  width: 10.3em;
  font-size: 0.8em;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mhys-courseware-header .mhys-courseware-tag {
  height: 1.5em;
  background: #0172ff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 0 0.5em;
}
.mhys-courseware-header .mhys-courseware-tag .mhys-courseware-text {
  font-size: 0.7em;
}
.mhys-courseware-header .mhys-courseware-icon {
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.2em;
}
.mhys-courseware-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.mhys-courseware-container .mhys-courseware-cover {
  width: 17em;
  height: 9.65em;
  margin-top: 0.5em;
  border-radius: 0.5em;
  position: relative;
  font-size: 20px;
}
.mhys-courseware-container .mhys-courseware-btn {
  font-size: 20px;
  width: 4.2em;
  line-height: 1.4em;
  background: #6b6b6b;
  border-radius: 0.6em;
  text-align: center;
  color: #fff;
  position: absolute;
  bottom: 0.5em;
  left: 50%;
  cursor: pointer;
  margin-left: -2.1em;
}
.mhys-courseware-container .mhys-courseware-btn .mhys-courseware-text {
  font-size: 0.7em;
}
.mhys-courseware-container .mhys-courseware-cover img {
  width: 100%;
  height: 100%;
  display: block;
}

.preview-container .mhys-flowChart-container {
  width: 90%;
  padding: 1em;
  height: 25em;
  border: 1px dashed #e2e2e2;
  margin: 2em auto;
  font-size: 20px;
}
