.article-body {
  --article-width: 60%;
  --image-margin: calc((var(--image-scale) - 100%) / -2);
  --image-scale: calc((100 / var(--article-width)) * 100%);
  line-height: 1.8;
  margin: 0 auto;
  overflow-wrap: break-word;
  padding-bottom: 40px;
}

.article-body img {
  max-width: 100%;
}

.article-body a:hover {
  border-bottom: 1px dotted rgb(var(--primary-5)); /* 设置链接文字颜色 */
  color: rgb(var(--primary-5));
  text-decoration: none;
}

.article-body audio,
.article-body iframe,
.article-body img:not(.icon-image),
.article-body .plyr--video {
  display: block;
  margin: 10px auto;
}

.article-body iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.article-body figcaption {
  margin: 0 auto;
  color: var(--color-text-3);
  font-size: 0.75rem;
  text-align: center;
}

.article-content figure {
  margin: 16px 0;
}

.article-content h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
  color: var(--color-text-1);
  font-weight: var(--font-weight-500);
}

.article-content li,
p {
  margin-block-start: 1em;
  margin-block-end: 1em;
}

.article-content pre {
  border-radius: var(--border-radius-medium);
  line-height: 1.2;
}

.article-date {
  color: var(--color-text-3);
  font-size: 0.75rem;
}

.article-header {
  margin: 0 auto;
  padding-top: 20px;
}

.article-meta .arco-typography {
  color: var(--color-text-3);
  font-size: 0.75rem;
  line-height: 2 !important;
}

.article-title,
.article-meta,
.article-date {
  margin: 0 auto;
}

.article-title.arco-typography {
  word-break: normal;
  overflow-wrap: break-word;
}

.scroll-container {
  contain: strict;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* 文章标题链接样式 */
.article-title a {
  color: var(--color-text-1); /* 设置链接文字颜色 */
  font-weight: 500;
  text-decoration: none;
}

/* 文章内容链接样式 */
.article-body a {
  transition: color 0.1s linear;
  border-bottom: 1px dotted rgb(var(--primary-6)); /* 设置链接文字颜色 */
  color: rgb(var(--primary-6));
  text-decoration: none;
}

/* 文章内容图片样式 */
.article-body img {
  border-radius: var(--border-radius-medium);
  height: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.article-body td {
  vertical-align: top;
  padding: 8px 8px 8px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-body td img {
  max-width: 100%;
  height: auto;
  margin: 0;
}

.article-body td a {
  display: inline-block;
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .edge-to-edge .article-body .big-image {
    border-radius: 0;
    display: block;
    margin: 10px var(--image-margin);
    width: var(--image-scale);
    max-width: var(--image-scale);
  }

  .article-body .big-image {
    border-radius: var(--border-radius-medium);
    display: block;
    margin: 10px auto;
    width: 100%;
    max-width: 100%;
  }

  .article-body .image-overlay-button {
    border-radius: 0;
    display: block;
    margin: 0 var(--image-margin);
    width: var(--image-scale);
    max-width: var(--image-scale);
  }

  .article-body table {
    display: block;
    max-width: 100%;
  }

  .article-body tbody {
    display: block;
    width: 100%;
  }

  .article-body tr {
    display: flex;
    flex-direction: column;
  }

  .article-body td {
    display: block;
    width: 100%;
  }

  .article-body td .big-image,
  .article-body td .image-overlay-button {
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
  }
}

/* 文章内容文本样式 */
.article-content {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  color: var(--color-text-2);
}

/* 文章内容引用样式 */
.article-body blockquote {
  margin: 1em 0;
  border-left: 1px solid var(--color-border-2);
  padding: 0 20px;
  color: var(--color-text-3);
}

.article-content code {
  background-color: #282c34;
  border-radius: var(--border-radius-small);
  padding: 0.2em 0.4em;
}

/*code 相关样式 - 表格 */
.article-content td {
  color: var(--color-text-3);
}
