/*
 * 文章（/articles/）：服务号文章的网页版。公众号正文里的网址点不了，「阅读原文」就指到这里。
 *
 * 顶栏、开头、正文、提示框、表格、页脚都借 /guide/guide.css，这里只放文章多出来的：
 * 单栏、标题不编号、配图、文章列表。
 */

/* 单栏，比使用说明窄：文章是从头读到尾的，不需要目录 */
.layout--article {
  max-width: 760px;
}

@media (min-width: 980px) {
  .layout--article {
    display: block;
  }
}

.hero--article {
  max-width: 760px;
}

/* 使用说明的 h2 前面有 01、02 的编号，文章不要 */
.layout--article .doc h2::before {
  content: none;
}

.layout--article .doc h2 {
  display: block;
}

/* ---------- 配图 ---------- */

.shot {
  margin: 22px 0 26px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

/* 手机截图：竖的，别撑满整栏 */
.shot--phone img {
  max-width: 360px;
  margin: 0 auto;
}

.shot figcaption {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}

.cover {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

/* ---------- 文章列表 ---------- */

.posts {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 14px;
}

/* 像公众号的历史消息：左边标题和摘要，右边一张方图 */
.posts a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 20px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-1);
}

.posts__text {
  flex: 1;
  min-width: 0;
}

.posts__thumb {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  object-fit: cover;
}

@media (min-width: 640px) {
  .posts__thumb {
    width: 120px;
    height: 120px;
  }
}

.posts a:hover {
  border-color: rgba(160, 140, 255, 0.5);
}

.posts strong {
  display: block;
  font-size: 18px;
  color: var(--ink-0);
}

.posts span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.posts em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--violet-soft);
}

.end .btn + .btn {
  margin-left: 10px;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
