/* 文章详情页 - 对齐参考站 help/article 布局 */
.article-info-page {
  width: 100%;
  box-sizing: border-box;
  background: #f5f6f8;
  padding: 20px 0 48px;
}

.article-info-page__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 20px 48px;
  box-sizing: border-box;
}

.article-info-breadcrumb {
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  color: #999;
  line-height: 22px;
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-info-breadcrumb a {
  color: #999;
  text-decoration: none;
}

.article-info-breadcrumb a:hover {
  color: #006eff;
}

.article-info-breadcrumb__sep {
  margin: 0 6px;
  color: #ccc;
}

.article-info-breadcrumb__current {
  color: #666;
}

/* 主栏 + 侧栏 + 底部推荐（Grid 保证对齐） */
.article-info-body {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: start;
}

.article-info-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 28px 32px 24px;
  box-sizing: border-box;
}

.article-info-sidebar {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.article-info-recommend {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.article-info-title {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  word-break: break-word;
}

.article-info-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.article-info-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 20px;
  color: #006eff;
  background: #e8f3ff;
  border: 1px solid #c8e1ff;
  border-radius: 2px;
  box-sizing: border-box;
  max-width: 100%;
  word-break: break-all;
}

.article-info-tag--outline {
  color: #006eff;
  background: #fff;
  border: 1px solid #b3d4ff;
}

.article-info-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #999;
}

.article-info-meta time {
  flex: 1 1 auto;
  min-width: 0;
}

.article-info-share {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.article-info-share:hover {
  color: #006eff;
}

.article-info-content {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-info-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
}

.article-info-content p {
  margin: 0 0 1em;
}

.article-info-pager {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #eee;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

.article-info-pager__prev,
.article-info-pager__next {
  flex: 1 1 0;
  min-width: 0;
}

.article-info-pager__next {
  text-align: right;
}

.article-info-pager__link {
  display: inline;
  color: #333;
  text-decoration: none;
  word-break: break-word;
}

.article-info-pager__link:hover {
  color: #006eff;
}

.article-info-pager__label {
  color: #999;
  margin-right: 4px;
}

.article-info-pager__empty {
  color: #bbb;
}

.article-info-widget {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.article-info-widget:last-child {
  margin-bottom: 0;
}

.article-info-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 24px;
}

.article-info-widget__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

.article-info-widget__refresh {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  font-size: 13px;
  color: #999;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.article-info-widget__refresh:hover {
  color: #006eff;
}

.article-info-hot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-info-hot-list li {
  position: relative;
  padding: 9px 0 9px 16px;
  border-bottom: 1px dashed #eee;
  min-width: 0;
}

.article-info-hot-list li:last-child {
  border-bottom: 0;
}

.article-info-hot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #d9d9d9;
}

.article-info-hot-list li:nth-child(1)::before {
  background: #ff4d4f;
}

.article-info-hot-list li:nth-child(2)::before {
  background: #ff7a45;
}

.article-info-hot-list li:nth-child(3)::before {
  background: #ffc53d;
}

.article-info-hot-list a {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-info-hot-list a:hover {
  color: #006eff;
}

.article-info-widget__empty {
  margin: 0;
  font-size: 13px;
  color: #bbb;
  line-height: 1.6;
}

.article-info-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.article-info-recommend__title {
  margin: 0;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  background: #f5f6f8;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}

.article-info-recommend__body {
  padding: 16px 20px 20px;
  box-sizing: border-box;
}

.article-info-recommend__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-info-recommend__list li {
  position: relative;
  min-width: 0;
  padding-left: 14px;
}

.article-info-recommend__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
}

.article-info-recommend__list a {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-info-recommend__list a:hover {
  color: #006eff;
}

.article-info-not-found {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 80px 20px;
  text-align: center;
  color: #999;
  font-size: 15px;
  box-sizing: border-box;
}

/* 平板 */
@media (max-width: 1100px) {
  .article-info-body {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
  }

  .article-info-main {
    padding: 24px 22px 20px;
  }

  .article-info-recommend__list {
    gap: 10px 24px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .article-info-page {
    padding: 12px 0 32px;
  }

  .article-info-page__inner {
    padding: 72px 20px 48px;
  }

  .article-info-breadcrumb {
    white-space: normal;
    line-height: 1.6;
  }

  .article-info-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 12px;
  }

  .article-info-main,
  .article-info-sidebar,
  .article-info-recommend {
    grid-column: 1;
    grid-row: auto;
  }

  .article-info-title {
    font-size: 20px;
  }

  .article-info-main {
    padding: 18px 16px 16px;
  }

  .article-info-widget {
    padding: 14px 16px;
  }

  .article-info-pager {
    flex-direction: column;
    gap: 12px;
  }

  .article-info-pager__prev,
  .article-info-pager__next {
    flex: none;
    width: 100%;
    text-align: left;
  }

  .article-info-pager__next {
    text-align: left;
  }

  .article-info-recommend__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .article-info-recommend__body {
    padding: 12px 16px 16px;
  }

  .article-info-recommend__title {
    padding: 10px 16px;
  }
}
