body {
  margin: 0;
}
.zc-article a {
  text-decoration: none;
  pointer-events: none;
  color: inherit;
}
.zc-article {
  white-space: pre-line;
  word-break: break-word;
  font-size: 16px;
  --font-size: 16px;
  font-family: 'PingFang SC', system-ui, -apple-system, BlinkMacSystemFont,
    Helvetica Neue, Helvetica, sans-serif;
  color: #333333;
  line-height: 1.9;
  /* 避免 Android WebView 自动放大局部字号导致行高计算错乱 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;
}

/* 行内背景色换行时按行绘制，多行高亮时更整齐 */
.zc-article span[style*='background-color'] {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 可编辑区普通 span 设行高；挖空块见下方 HiddenFlag（避免选择器特异性盖住挖空行高） */
.zc-article.content span:not([style*='HiddenFlag']) {
  line-height: 1.9;
}

.zc-article h1 {
  margin-top: calc(var(--font-size) * 1.25);
  margin-bottom: calc(var(--font-size) * 0.875);
  font-size: 1.25em;
  line-height: 1.9;
}
.zc-article h2 {
  margin-top: calc(var(--font-size) * 1.25);
  margin-bottom: calc(var(--font-size) * 0.75);
  font-size: 1.125em;
}
.zc-article h3 {
  margin-top: calc(var(--font-size) * 0.875);
  margin-bottom: calc(var(--font-size) * 0.75);
  font-size: 1.0625em;
}
.zc-article h2,
.zc-article h3 {
  position: relative;
  padding-left: calc(var(--font-size) * 0.75);
  line-height: 1.9;
}
.zc-article h2:before,
.zc-article h3:before {
  content: '';
  position: absolute;
  left: 0;
  width: calc(var(--font-size) * 0.25);
  height: calc(var(--font-size) * 1.125);
  background-color: #5b91ff;
}
.zc-article h2:before {
  top: calc(var(--font-size) * 0.28125);
}
.zc-article h3:before {
  top: calc(var(--font-size) * 0.234375);
}
.zc-article ul,
.zc-article ol {
  margin: 0;
  padding-left: calc(var(--font-size) * 1.875);
}
.zc-article ul {
  list-style: disc;
}
.zc-article li {
  font-size: 1em;
  line-height: 1.9;
}
.zc-article blockquote {
  margin: 0;
  padding-left: calc(var(--font-size) * 0.5);
  border-color: #c8cdd7;
  border-style: solid;
  border-width: 0;
  border-left-width: calc(var(--font-size) * 0.25);
  color: #9ba0a5;
  font-size: 0.8125em;
  line-height: 1.9;
}
.zc-article > div:not([data-type]),
.zc-article > div[data-type='p'] {
  font-size: 1em;
  line-height: 1.9;
}
.zc-article > p {
  font-size: 0.8125em;
  line-height: 1.9;
}
.zc-article [data-type='divider'] {
  margin: 0;
  padding: 1px 0;
}
.zc-article hr {
  height: 1px;
  border: 0;
  background-color: #c8cdd7;
}
.zc-article [data-type='img'] {
  margin: 0;
  line-height: 0;
}
.zc-article img {
  display: inline-block;
  width: 100%;
  min-height: 10px;
  object-fit: contain;
}
.zc-article [data-img-size='small'] img {
  width: 150px !important;
}
.zc-article [data-img-size='large'] img {
  width: 250px !important;
}
.zc-article > *,
.zc-article li {
  margin-top: calc(var(--font-size) * 0.75);
  margin-bottom: calc(var(--font-size) * 0.75);
}
.zc-article [data-type='video'] {
  line-height: 0;
}
.zc-article video {
  width: 100%;
}
.zc-article .css {
  height: 0;
  margin: 0;
  padding: 0;
}
.zc-article [data-type='block'] {
  padding-top: calc(var(--font-size) * 0.75);
  padding-bottom: calc(var(--font-size) * 0.75);
  padding-right: var(--font-size);
  padding-left: var(--font-size);
  border-radius: calc(var(--font-size) * 0.25);
  background-color: #f5f7fa;
}

.zc-article [data-type='block'] > div:first-child {
  margin-bottom: calc(var(--font-size) * 0.5);
  line-height: 1.65;
  font-size: 0.8125em;
  font-weight: bold;
  counter-reset: index 0;
}
.zc-article [data-type='block'] > div:not(:first-child) {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.9;
  font-size: 0.6875em;
  color: #9ba0a5;
}
.zc-article [data-type='block'] > div:not(:first-child):before {
  counter-increment: index;
  content: '[' counter(index) '].';
}
/* .zc-article video::-webkit-media-controls-fullscreen-button{
  display:none;
} */
.zc-article video:focus {
  outline: 0;
}
/* 挖空：用 em 垂直留白 + 略大行高，减轻 Android WebView 下行盒偏紧、色块上下贴死 */
.zc-article span[style*='font-family: HiddenFlag'],
.zc-article span[style*='font-family:HiddenFlag'],
span[style*='font-family: HiddenFlag'],
span[style*='font-family:HiddenFlag'] {
  background-color: #99b2ff;
  color: #99b2ff;
  -webkit-tap-highlight-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: 2;
  padding: 0.32em 0;
  vertical-align: baseline;
}
.zc-article span[style*='font-family: HiddenFlag'] span,
.zc-article span[style*='font-family:HiddenFlag'] span,
span[style*='font-family: HiddenFlag'] span,
span[style*='font-family:HiddenFlag'] span {
  background-color: #99b2ff;
  color: #99b2ff;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: 2;
  padding: 0.32em 0;
  vertical-align: baseline;
}
.show-all-txt span[style*='font-family: HiddenFlag'],
.show-all-txt span[style*='font-family:HiddenFlag'],
.hidden-item-visible {
  background-color: transparent !important;
  color: #5b91ff !important;
}
.show-all-txt span[style*='font-family: HiddenFlag'] span,
.show-all-txt span[style*='font-family:HiddenFlag'] span,
.hidden-item-visible span {
  background-color: transparent !important;
  color: #5b91ff !important;
}
.hidden-html {
  padding: 14px;
}
.bbxc-title {
  font-size: 18px;
  line-height: 22px;
  font-weight: bold;
  color: #333333;
  font-family: 'PingFang SC', system-ui, -apple-system, BlinkMacSystemFont,
    Helvetica Neue, Helvetica, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

.article-dark-mode {
  filter: invert(1) hue-rotate(180deg);
}

.article-dark-mode img {
  opacity: 0.7;
  filter: invert(1) hue-rotate(180deg);
}

/* 窄屏 / 小屏设备 / 触控：WebView 常把 pointer 报成 fine；max-device-width 可绕过错误 viewport */
@media screen and (max-width: 960px),
  screen and (max-device-width: 960px),
  (pointer: coarse) {
  .zc-article {
    line-height: 2.1;
  }
  .zc-article > div:not([data-type]),
  .zc-article > div[data-type='p'],
  .zc-article > p,
  .zc-article li {
    line-height: 2.1;
  }
  .zc-article h1,
  .zc-article h2,
  .zc-article h3 {
    line-height: 2.1;
  }
  .zc-article blockquote {
    line-height: 2.1;
  }
  .zc-article [data-type='block'] > div:not(:first-child) {
    line-height: 2.1;
  }
  .zc-article.content span:not([style*='HiddenFlag']) {
    line-height: 2.1;
  }
  /* WebView 下行内块易压行盒，用 !important 顶掉其它样式；translateZ 促成分层减少叠字 */
  .zc-article span[style*='font-family: HiddenFlag'],
  .zc-article span[style*='font-family:HiddenFlag'],
  span[style*='font-family: HiddenFlag'],
  span[style*='font-family:HiddenFlag'] {
    line-height: 2.45 !important;
    padding: 0.52em 0 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .zc-article span[style*='font-family: HiddenFlag'] span,
  .zc-article span[style*='font-family:HiddenFlag'] span,
  span[style*='font-family: HiddenFlag'] span,
  span[style*='font-family:HiddenFlag'] span {
    line-height: 2.45 !important;
    padding: 0.52em 0 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}
