.rich_media_wrp {
	position: relative;
	text-align: center;
}

.rich_media_title {
	font-size: 1.6em;
	line-height: 1.4;
	margin-bottom: 14px
}

.rich_media_meta_list {
	margin-bottom: 22px;
	line-height: 20px;
	font-size: 1em;
	word-wrap: break-word;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto
}

.rich_media_meta_list em {
	font-style: normal
}

.rich_media_meta {
	display: inline-block;
	vertical-align: middle;
	margin: 0 10px 10px 0;
	font-size: 1.25em;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

.rich_media_meta.icon_appmsg_tag {
	margin-right: 4px
}

.rich_media_meta.appmsg_title_tag {
	margin-right: 8px
}

.rich_media_meta.meta_tag_text {
	margin-right: 0
}

.rich_media_meta_primary {
	display: block;
	margin-bottom: 10px;
	font-size: 1.25em;
}

.meta_original_tag {
	padding: 0 .5em;
	font-size: 1.01em;
	line-height: 1.4;
	background-color: #f2f2f2;
	color: rgba(0, 0, 0, 0.5)
}

.rich_media_content {
	overflow: hidden;
	color: #333;
	font-size: 1em;
	word-wrap: break-word;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
	text-align: justify;
	position: relative;
	z-index: 0
}

.rich_media_content * {
	max-width: 100%!important;
	box-sizing: border-box!important;
	-webkit-box-sizing: border-box!important;
	word-wrap: break-word!important
}

.rich_media_content p {
	clear: both;
	min-height: 1em
}

.rich_media_content em {
	font-style: italic
}

.rich_media_content fieldset {
	min-width: 0
}

.rich_media_content .list-paddingleft-1,
.rich_media_content .list-paddingleft-2,
.rich_media_content .list-paddingleft-3 {
	padding-left: 2.2em
}

.rich_media_content .list-paddingleft-1 .list-paddingleft-2,
.rich_media_content .list-paddingleft-2 .list-paddingleft-2,
.rich_media_content .list-paddingleft-3 .list-paddingleft-2 {
	padding-left: 30px
}

.rich_media_content .list-paddingleft-1 {
	padding-left: 1.2em
}

.rich_media_content .list-paddingleft-3 {
	padding-left: 3.2em
}

.rich_media_content .code-snippet,
.rich_media_content .code-snippet__fix {
	max-width: 1000%!important
}

.rich_media_content .code-snippet *,
.rich_media_content .code-snippet__fix * {
	max-width: 1000%!important
}

.rich_pages {
    max-width:60%;
    @media only screen and (max-width: 600px) {
        width:90%;
    }
}
/* ---------------------------------------------------------------------------
   The page around a crawled article. The markup above this line is WeChat's own,
   shipped with the post; everything below is the reading frame we put around it:
   a measured column, a bar with the way back and the text-size control, and
   neighbour links that say where they go. */
.wx-article {
  margin: 0 auto;
  max-width: 800px;
  padding: 0 14px 10px;
  text-align: left;
}

.wx-article__bar {
  align-items: center;
  border-bottom: 1px solid #ddddc8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding-bottom: 8px;
}

.wx-article__crumbs {
  color: #8a7a6a;
  font-size: 0.85em;
}

.wx-article__crumbs a {
  color: #4a7c59;
  text-decoration: none;
}

.wx-article__crumbs a:hover {
  text-decoration: underline;
}

.wx-article__crumb-sep {
  opacity: 0.5;
  padding: 0 6px;
}

.wx-article__tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

/* Three steps, not a slider: the body already scales in 0.2em steps, and a reader
   who wants larger text wants it in one click. */
.wx-textsize {
  display: inline-flex;
  gap: 4px;
}

.wx-textsize__btn {
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid #ccc;
  border-radius: 10px;
  color: #1a5276;
  font-size: 0.82em;
  line-height: 1.6;
  min-width: 2.2em;
  padding: 1px 7px;
  text-align: center;
  text-decoration: none;
}

.wx-textsize__btn:hover {
  border-color: #8a8a72;
  text-decoration: none;
}

/* The same two neighbours as the foot of the page, small enough to ride in the
   bar: a reader who opened the wrong post should not have to scroll a long one to
   step off it. */
.wx-article__step {
  color: #4a7c59;
  font-size: 0.85em;
  text-decoration: none;
  white-space: nowrap;
}

.wx-article__step:hover {
  text-decoration: underline;
}

.wx-article__step--off {
  color: #bdbdac;
  cursor: default;
}

.wx-article__origin {
  color: #4a7c59;
  font-size: 0.85em;
  text-decoration: none;
  white-space: nowrap;
}

.wx-article__origin-icon {
  font-size: 0.85em;
  margin-left: 4px;
  opacity: 0.7;
}

.wx-article__audio {
  padding-top: 12px;
  text-align: center;
}

/* The body. `.html-text-style-wechat` gave it 70% of the window and a grey ground,
   so the measure grew with the screen and the text sat on the same colour as the
   page. White paper at a fixed measure, and the line height a long read wants. */
.wx-article__body.html-text-style-wechat {
  background-color: #fff;
  border: 1px solid #d9d9c6;
  border-radius: 12px;
  color: #333;
  line-height: 1.9;
  margin-top: 12px;
  padding: 22px 26px;
  width: auto;
}

.wx-article__body img,
.wx-article__body video {
  border-radius: 6px;
  display: block;
  height: auto;
  margin: 12px auto;
  /* No height cap: some posts are a single very tall strip image holding the whole
     text, and capping the height shrank one of those to an unreadable sliver. */
  max-width: 100%;
}

/* Crawled posts carry inline widths and the odd wide table; keep them inside the
   column rather than letting one push the whole page sideways. */
.wx-article__body table,
.wx-article__body pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.wx-article__body .rich_media_title {
  color: #4e0d0d;
  margin-bottom: 10px;
  text-align: left;
}

.wx-article__body .rich_media_meta_list {
  border-bottom: 1px solid #ececdc;
  color: #8a8a78;
  margin-bottom: 20px;
  padding-bottom: 10px;
  text-align: left;
}

.wx-article__body .rich_media_meta {
  font-size: 0.85em;
}

/* Neighbours, under the text where the reader ends up, each with the title it
   leads to instead of a bare 上一篇 pinned to the edge of the window. */
.wx-article__nav {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding-top: 14px;
}

.wx-nav-card {
  background-color: #fff;
  border: 1px solid #d9d9c6;
  border-radius: 10px;
  display: block;
  padding: 10px 14px;
  text-decoration: none;
}

a.wx-nav-card:hover {
  border-color: #b9b9a0;
}

.wx-nav-card--next {
  text-align: right;
}

.wx-nav-card--empty {
  color: #a5a593;
  font-size: 0.85em;
}

.wx-nav-card__label {
  color: #8a8a78;
  display: block;
  font-size: 0.78em;
}

.wx-nav-card__title {
  color: #1a5276;
  display: block;
  line-height: 1.5;
  padding-top: 2px;
}

a.wx-nav-card:hover .wx-nav-card__title {
  text-decoration: underline;
}

.wx-nav-card__date {
  color: #a5a593;
  display: block;
  font-size: 0.78em;
  padding-top: 2px;
}

@media screen and (max-width: 600px) {
  .wx-article__body.html-text-style-wechat {
    padding: 16px 14px;
  }

  .wx-article__nav {
    grid-template-columns: 1fr;
  }

  .wx-nav-card--next {
    text-align: left;
  }
}

/* A locked post. The view used to answer with a bare <h2> dressed as the article
   body, which said what happened but not what to do about it. */
.wx-article__denied {
  background-color: #fff;
  border: 1px dashed #d0d0ba;
  border-radius: 12px;
  margin-top: 14px;
  padding: 30px 18px;
  text-align: center;
}

.wx-article__denied-lead {
  color: #6f6f5e;
  margin: 0 0 14px;
}
