@charset "UTF-8";

/* ========== Article Detail ========== */
.science-content {
  padding-top: 24px;
}

.article-detail {
  max-width: 900px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 24px;
  transition: var(--transition);
}

.article-back:hover {
  color: var(--primary);
}

.article-title {
  /* 覆盖 main.css 的全局 SEO 隐藏手法（h1 { text-indent:-999px; float:left; font-size:12px }） */
  float: none;
  text-indent: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 0 0 16px;
  /* 文章标题居中展示；强制换行避免超长标题在窄屏/字号大时溢出容器并漂出视口 */
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 0 8px;
}

.article-abstract {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 0 12px;
}

.article-publish-time {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 20px;
}

.article-divider {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin-bottom: 32px;
}

.article-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body p {
  margin: 0 0 16px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin: 24px 0 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
}

/* 编辑器正文「伪标题」归一化后的真 H2：给出明确字号与视觉层级 */
.article-body h2 {
  font-size: 20px;
  padding: 8px 0 8px 12px;
  border-left: 4px solid var(--primary);
  background: rgba(0, 0, 0, 0.02);
}

.article-body h3 {
  font-size: 17px;
}

.article-body h2 + p,
.article-body h2 + h3 {
  margin-top: 4px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
}

.article-error {
  padding: 60px 20px;
  text-align: center;
  color: rgba(0, 0, 0, 0.35);
  font-size: 14px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .science-content {
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 24px;
  }

  .article-abstract {
    font-size: 14px;
  }

  .article-divider {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .page-header .breadcrumb {
    font-size: 12px;
  }

  .science-content {
    padding-top: 16px;
  }

  .article-detail {
    max-width: 100%;
  }

  .article-back {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .article-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .article-abstract {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .article-publish-time {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .article-body {
    font-size: 14px;
    line-height: 1.7;
  }
}
