/*
 * 文章正文排版：前台与后台 TinyMCE 编辑器共用同一份样式，保证所见即所得。
 * 前台由 resouce.blade.php 引入；后台由 Admin.js 的 content_css 挂载。
 */

.articleArticle article,
body.mce-content-body {
  margin: 0;
  padding: 20px 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.articleArticle article *,
body.mce-content-body * {
  max-width: 100%;
}

.articleArticle h1,
body.mce-content-body h1 {
  margin: 0;
  font-size: 32px;
  color: #1a1a1a;
  padding: 40px 40px 10px 40px;
  display: flex;
  line-height: 1.6;
  align-items: center;
  font-weight: 700;
  justify-content: center;
  text-align: center;
}

.articleArticle h2,
body.mce-content-body h2 {
  display: block;
  padding: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
  margin: 28px 0 12px;
}

.articleArticle h3,
body.mce-content-body h3 {
  display: block;
  padding: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
  margin: 22px 0 10px;
}

.articleArticle article p,
.articleArticle article div,
body.mce-content-body p,
body.mce-content-body div {
  margin-top: 0;
  margin-bottom: 10px;
}

.articleArticle article ul,
.articleArticle article ol,
body.mce-content-body ul,
body.mce-content-body ol {
  margin-bottom: 10px;
  padding-left: 24px;
}

.articleArticle article ul,
body.mce-content-body ul {
  list-style: disc;
}

.articleArticle article ol,
body.mce-content-body ol {
  list-style: decimal;
}

.articleArticle article li,
body.mce-content-body li {
  margin-bottom: 4px;
}

.articleArticle article table,
body.mce-content-body table {
  border-collapse: collapse;
  margin-bottom: 10px;
  max-width: 100%;
}

.articleArticle article th,
.articleArticle article td,
body.mce-content-body th,
body.mce-content-body td {
  padding: 6px 8px;
  text-align: left;
}

.articleArticle article th,
body.mce-content-body th {
  font-weight: 700;
}

.articleArticle article img,
body.mce-content-body img {
  max-width: 100%;
  height: auto;
}

.articleArticle article video,
body.mce-content-body video {
  width: 100%!important;
  height: auto;
}

@media (max-width: 768px) {
  .articleArticle article,
  body.mce-content-body {
    padding: 0;
    font-size: 14px;
  }

  .articleArticle h1,
  body.mce-content-body h1 {
    font-size: 24px;
    line-height: 1.5;
    padding: 0;
    margin-bottom: 3vw;
  }

  .articleArticle h2,
  body.mce-content-body h2 {
    font-size: 20px;
    line-height: 1.5;
    margin: 4vw 0 2vw;
  }

  .articleArticle h3,
  body.mce-content-body h3 {
    font-size: 17px;
    line-height: 1.5;
    margin: 3vw 0 1.5vw;
  }

  .articleArticle article p,
  .articleArticle article div,
  body.mce-content-body p,
  body.mce-content-body div {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 3vw;
    text-align: justify;
  }

  .articleArticle article img,
  .articleArticle article video,
  body.mce-content-body img,
  body.mce-content-body video {
    width: 100%!important;
    height: auto;
  }
}
