/* 自定义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;
}

/* 模板动态适配 */
/* 模板1 */
/* 标题样式 */
.preview-container .mhys-template1 .first-level-title {
    width: 100%;
    height: 66px;
    background: url("./template/tpl1/titleBg1.png") no-repeat;
    background-position: center;
    line-height: 56px;
    text-align: center;
    margin: 40px 0px 20px;
    color: #00151b;
    font-weight: bold;
    font-size: 24px;
}

.preview-container .mhys-template1 .second-level-title {
    width: 100%;
    height: 42px;
    background: url("./template/tpl1/titleBg2.png") no-repeat;
    position: relative;
    margin: 40px 0px 20px;
}
.mhys-template1 .second-level-title .second-level-title-content {
    position: absolute;
    top: 18px;
    left: 71px;
    line-height: 24px;
    color: #00151b;
    font-weight: bold;
    font-size: 20px;
}
.preview-container .mhys-template1 .third-level-title {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    background: url("./template/tpl1/titleBg3.png") no-repeat;
    padding-left: 30px;
    background-position: left center;
    margin: 40px 0px 20px;
}
.mhys-template1 .third-level-title .third-level-title-content {
    padding: 4px 0px 4px 6px;
    color: #00151b;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px solid #dff1f4;
    position: relative;
}
.mhys-template1 .third-level-title .third-level-title-line {
    display: block;
    width: 33px;
    height: 2px;
    background: #00eeff;
    position: absolute;
    bottom: -1px;
    right: 0px;
}
/* 
* 组件样式
* 测验 视频 音频 等
 */
.mhys-template1 .mhys-part-container {
    width: 90%;
    margin: 2em auto;
    padding: 1em;
    border: 1px dashed #e2e2e2;
    font-size: 20px;
}
.mhys-template1 .mhys-part-container .mhys-part-title {
    height: 2.1em;
    background: url("./template/tpl1/partTitleBg.png") no-repeat;
    background-size: auto 100%;
    text-indent: 3.4em;
    line-height: 2.1em;
    font-size: 1em;
    color: #000000;
}
.mhys-template1 .mhys-part-content {
    height: 3.2em;
    background: url("./template/tpl1/partBg.png") no-repeat, #f4f9f9;
    background-size: auto 100%;
    border: 1px solid #deeff0;
    margin-top: 1em;
    border-radius: 0.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mhys-template1 .mhys-part-content .mhys-part-content-left {
    color: #222;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 3.4em;
}
.mhys-template1 .mhys-part-content .mhys-part-content-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    margin: 0 0.7em;
    height: 1.8em;
    background: linear-gradient(270deg, #3aaec3 0%, #00eeff 100%);
    border-radius: 0.2em;
    padding: 0px 0.5em;
    font-weight: bold;
    font-size: 0.9em;
    color: #ffffff;
    cursor: pointer;
}
.mhys-template1 .mhys-part-container .mhys-part-content .mhys-part-content-img {
    width: 1em;
    height: 1em;
}
/* 画廊 */
.mhys-template1 .mhys-module-title {
    height: 2.1em;
    background: url("./template/tpl1/partTitleBg.png") no-repeat;
    background-size: auto 100%;
    text-indent: 3.4em;
    line-height: 2.1em;
    font-size: 1em;
    color: #000000;
}
/* 模板2 段落样式 */
/* 标题样式 */
.preview-container .mhys-template2 .first-level-title {
    width: 100%;
    height: 66px;
    background: url("./template/tpl2/titleBg1.png") no-repeat;
    background-position: center;
    line-height: 56px;
    text-align: center;
    margin: 40px 0px 20px;
    color: #00151b;
    font-weight: bold;
    font-size: 24px;
}
.preview-container .mhys-template2 .second-level-title {
    width: 100%;
    height: 42px;
    background: url("./template/tpl2/titleBg2.png") no-repeat;
    padding-left: 60px;
    margin: 40px 0px 20px;
}
.mhys-template2 .second-level-title .second-level-title-content {
    line-height: 42px;
    color: #00151b;
    font-weight: bold;
    font-size: 20px;
}
.preview-container .mhys-template2 .third-level-title {
    width: 100%;
    height: 36px;
    display: flex;
    background: url("./template/tpl2/titleBg3.png") no-repeat;
    padding-left: 50px;
    background-position: left center;
    align-items: center;
    margin: 40px 0px 20px;
}
.mhys-template2 .third-level-title .third-level-title-content {
    padding: 4px 0px 4px 6px;
    color: #00151b;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px solid #dff1f4;
    position: relative;
}

/* 
* 组件样式
* 测验 视频 音频 等
 */
.mhys-template2 .mhys-part-container {
    width: 90%;
    margin: 2em auto;
    padding: 1em;
    border: 1px dashed #e2e2e2;
    font-size: 20px;
}
.mhys-template2 .mhys-part-container .mhys-part-title {
    height: 2.1em;
    background: url("./template/tpl2/partTitleBg.png") no-repeat;
    background-size: auto 100%;
    text-indent: 3.4em;
    line-height: 2.1em;
    font-size: 1em;
    color: #000000;
}
.mhys-template2 .mhys-part-content {
    height: 3.2em;
    background: url("./template/tpl1/partBg.png") no-repeat, #eff3ff;
    background-size: auto 100%;
    border: 1px solid #deeff0;
    margin-top: 1em;
    border-radius: 0.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mhys-template2 .mhys-part-content .mhys-part-content-left {
    color: #222;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 3.4em;
}
.mhys-template2 .mhys-part-container .mhys-part-content .mhys-part-content-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    margin: 0 0.7em;
    height: 1.8em;
    background: linear-gradient(270deg, #0172ff 0%, #00bbff 100%);
    border-radius: 0.2em;
    padding: 0px 0.5em;
    font-weight: bold;
    font-size: 0.9em;
    color: #ffffff;
    cursor: pointer;
}
.mhys-template2 .mhys-part-container .mhys-part-content .mhys-part-content-img {
    width: 1em;
    height: 1em;
}
/* 画廊 */
.mhys-template2 .mhys-module-title {
    height: 2.1em;
    background: url("./template/tpl2/partTitleBg.png") no-repeat;
    background-size: auto 100%;
    text-indent: 3.4em;
    line-height: 2.1em;
    font-size: 1em;
    color: #000000;
}
