/* WordPress 区块编辑器样式 */

/* WordPress 默认字体大小类样式 */
.has-small-font-size {
  font-size: 14px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

.has-medium-font-size {
  font-size: 16px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

.has-large-font-size {
  font-size: 18px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

.has-huge-font-size {
  font-size: 20px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

/* WordPress 默认文本大小类样式 */
.is-small-text {
  font-size: 14px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

.is-regular-text {
  font-size: 16px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

.is-large-text {
  font-size: 18px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

.is-larger-text {
  font-size: 20px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

/* WordPress 预设字体大小类样式 */
.has-normal-font-size {
  font-size: 16px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

.has-regular-font-size {
  font-size: 16px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

.has-larger-font-size {
  font-size: 20px !important;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
}

/* 图片对齐样式 - 修复居中问题 */
.aligncenter {
  clear: both;
  display: block;
  margin: 16px auto !important;
  text-align: center;
}

.aligncenter img {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

.alignleft {
  float: left;
  margin-right: 16px;
  margin-bottom: 16px;
}

.alignright {
  float: right;
  margin-left: 16px;
  margin-bottom: 16px;
}

/* 图片块居中对齐 */
.wp-block-image .aligncenter {
  text-align: center;
}

.wp-block-image .aligncenter figcaption {
  text-align: center;
}

/* 段落样式 */
.wp-block-paragraph {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
  color: #333;
}

/* 标题样式 */
.wp-block-heading {
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 24px;
  color: #333;
}

.wp-block-heading h1,
.wp-block-heading h2,
.wp-block-heading h3,
.wp-block-heading h4,
.wp-block-heading h5,
.wp-block-heading h6 {
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 24px;
  color: #333;
}

/* 图片样式 */
.wp-block-image {
  margin: 16px 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 列表样式 */
.wp-block-list {
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.wp-block-list li {
  margin-bottom: 8px;
}

/* 引用样式 */
.wp-block-quote {
  border-left: 4px solid #007cba;
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
  color: #666;
}

/* 代码样式 */
.wp-block-code {
  background-color: #f4f4f4;
  padding: 16px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  margin: 16px 0;
  overflow-x: auto;
}

/* 分隔线样式 */
.wp-block-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 24px 0;
}

/* 按钮样式 */
.wp-block-button {
  margin: 16px 0;
}

.wp-block-button__link {
  background-color: #007cba;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
  font-size: 16px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.wp-block-button__link:hover {
  background-color: #005a87;
  color: white;
}

/* 文章内容容器样式 */
.article-content {
  font-size: 16px;
  line-height: 1.6;
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
  color: #333;
}

.article-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-family: "HarmonyOS Sans SC", Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 24px;
  color: #333;
}

.article-content h1 {
  font-size: 24px;
}
.article-content h2 {
  font-size: 22px;
}
.article-content h3 {
  font-size: 20px;
}
.article-content h4 {
  font-size: 18px;
}
.article-content h5 {
  font-size: 16px;
}
.article-content h6 {
  font-size: 14px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 4px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 4px solid #007cba;
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: #666;
}

.article-content code {
  background-color: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 14px;
}

.article-content pre {
  background-color: #f4f4f4;
  padding: 16px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  margin: 16px 0;
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  padding: 0;
}
