/* TinyMCE编辑区与前台展示共同使用的富文本基础样式。 */
@font-face {
  font-family: SourceHanSansSC;
  src: url("/front/static/fonts/SourceHanSansSC-Regular.otf") format("opentype"),
    url("./fonts/SourceHanSansSC-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.ky-rich-text {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  color: #000;
  font-family: SourceHanSansSC, "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: normal;
}

.ky-rich-text *,
.ky-rich-text *::before,
.ky-rich-text *::after {
  box-sizing: border-box;
}

.ky-rich-text > :first-child {
  margin-top: 0;
}

.ky-rich-text > :last-child {
  margin-bottom: 0;
}

.ky-rich-text p {
  margin: 0 0 1em;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.ky-rich-text h1,
.ky-rich-text h2,
.ky-rich-text h3,
.ky-rich-text h4,
.ky-rich-text h5,
.ky-rich-text h6 {
  margin: 1em 0 0.5em;
  padding: 0;
  color: inherit;
  font-family: inherit;
  line-height: 1.35;
  font-weight: 700;
}

.ky-rich-text ul,
.ky-rich-text ol {
  margin: 0 0 1em;
  padding-left: 2em;
}

.ky-rich-text ul {
  list-style-type: disc;
}

.ky-rich-text ul ul {
  list-style-type: circle;
}

.ky-rich-text ul ul ul {
  list-style-type: square;
}

.ky-rich-text ol {
  list-style-type: decimal;
}

.ky-rich-text li {
  list-style-type: inherit;
}

.ky-rich-text li + li {
  margin-top: 1em;
}

.ky-rich-text blockquote {
  margin: 1em 0;
  padding: 0.6em 1em;
  border-left: 4px solid #d7dce2;
  color: #606266;
}

.ky-rich-text pre {
  max-width: 100%;
  overflow: auto;
  padding: 1em;
  border-radius: 4px;
  background: #f5f7fa;
  white-space: pre-wrap;
}

.ky-rich-text code {
  font-family: Consolas, Monaco, "Andale Mono", monospace;
}

.ky-rich-text figure {
  max-width: 100%;
  margin: 1em 0;
}

.ky-rich-text figcaption {
  margin-top: 0.5em;
  color: #909399;
  font-size: 0.875em;
  text-align: center;
}

.ky-rich-text img,
.ky-rich-text video,
.ky-rich-text iframe {
  max-width: 100%;
}

.ky-rich-text img,
.ky-rich-text video {
  height: auto;
}

.ky-rich-text video {
  display: block;
}

.ky-rich-text iframe {
  border: 0;
}

.ky-rich-text table {
  max-width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
}

.ky-rich-text th,
.ky-rich-text td {
  padding: 8px;
  border: 1px solid #d7dce2;
  vertical-align: top;
}

.ky-rich-text caption {
  margin-bottom: 0.5em;
  font-weight: 700;
  text-align: center;
}

.ky-rich-text a {
  color: #409eff;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.ky-scene-detail-introduction {
  margin-top: 48px;
}

.ky-scene-detail-copy-rich-text {
  margin-top: 42px;
}

@media (min-width: 992px) and (max-width: 1500px) {
  .ky-scene-detail-introduction {
    margin-top: 36px;
  }

  .ky-scene-detail-copy-rich-text {
    margin-top: 34px;
  }
}

@media (max-width: 992px) {
  .ky-scene-detail-introduction {
    margin-top: 24px;
  }

  .ky-scene-detail-copy-rich-text {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .ky-scene-detail-introduction {
    margin-top: 16px;
  }

  .ky-scene-detail-copy-rich-text {
    margin-top: 22px;
  }
}
