/* =========================================================================
   源起点科技主题 · WordPress 动态内容补充样式
   仅用于新闻 / 案例详情与动态列表，不覆盖 assets/css/style.css 原有规则。
   ========================================================================= */

/* ---------- 详情页排版 ---------- */
.article-wrap {
  max-width: 880px;
  margin: 0 auto;
}

.article-cover {
  margin: 0 0 40px;
  overflow: hidden;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.entry-content > * + * {
  margin-top: 22px;
}

.entry-content h2 {
  margin-top: 46px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  color: var(--navy);
}

.entry-content h3 {
  margin-top: 36px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  color: var(--navy);
}

.entry-content h4 {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
}

.entry-content p {
  font-size: 16px;
  line-height: 1.95;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.entry-content li + li {
  margin-top: 8px;
}

.entry-content a {
  color: var(--gold-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--navy);
}

.entry-content blockquote {
  margin: 34px 0;
  padding: 20px 26px;
  border-left: 3px solid var(--gold);
  background: rgba(200, 10, 20, 0.05);
  color: var(--navy);
}

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
}

.entry-content figure {
  margin: 32px 0;
}

.entry-content figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.entry-content pre {
  padding: 20px;
  background: var(--navy-deep);
  color: #f2f2f2;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}

.entry-content code {
  padding: 2px 6px;
  background: var(--bg-soft);
  font-size: 0.92em;
}

.entry-content pre code {
  padding: 0;
  background: transparent;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.entry-content th {
  background: var(--bg-soft);
  color: var(--navy);
}

.page-links {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 动态列表中的标题链接 ---------- */
.news-page-feature h2 a,
.news-card h3 a,
.case-tile h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.news-page-feature h2 a:hover,
.news-card h3 a:hover,
.case-tile h3 a:hover {
  color: var(--gold-ink);
}

.news-page-feature.no-media {
  grid-template-columns: 1fr;
}

.case-tile h3 a {
  display: block;
}

/* ---------- 文章导航 ---------- */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.post-nav-item {
  font-size: 14px;
  line-height: 1.7;
}

.post-nav-item a {
  color: var(--text);
}

.post-nav-item a:hover {
  color: var(--gold-ink);
}

.post-nav-next {
  text-align: right;
}

/* ---------- 分页 ---------- */
.pagination {
  margin-top: 48px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.25s, color 0.25s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--gold);
  color: var(--gold-ink);
}

/* ---------- 表单状态（普通 POST 兜底时） ---------- */
.form-status.is-error {
  color: #c0392b;
}

/* ---------- 无障碍辅助 ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .post-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-nav-next {
    text-align: left;
  }
}
