/* =====================================================================
   detail.css —— 文章详情页（对应参考图三）
   标题居中大字 + 红色半透明正文卡 + 金色描边 + 正文内嵌图片
   ===================================================================== */

.detail-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 10px;
}

/* 标题区 */
.detail-head { text-align: center; margin-bottom: 26px; }
.detail-title {
  margin: 0 0 12px;
  font-family: "SimSun", "Songti SC", serif;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 3px 10px rgba(50, 6, 4, .7);
}
.detail-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  color: var(--gold-light);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.detail-meta .sep { color: rgba(247, 220, 164, .4); }
.detail-meta .chip {
  padding: 2px 12px;
  border: 1px solid rgba(247, 220, 164, .45);
  border-radius: 12px;
  font-size: 14px;
}

/* 正文卡片 */
.detail-card {
  position: relative;
  padding: 40px clamp(28px, 5vw, 76px) 48px;
  border: 2px solid rgba(217, 164, 65, .75);
  background: linear-gradient(180deg, rgba(120, 24, 18, .82), rgba(88, 14, 10, .88));
  box-shadow: 0 18px 44px rgba(35, 5, 3, .45);
}
/* 顶部金色装饰线 */
.detail-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}

/* 正文排版 */
.article-body {
  color: #fff4e2;
  font-size: 18px;
  line-height: 2;
  letter-spacing: .3px;
}
.article-body p { margin: 0 0 1.4em; text-align: justify; }
.article-body p:first-child { text-indent: 2em; }
.article-body p:last-child { margin-bottom: 0; }

.article-figure {
  margin: 28px auto;
  max-width: 72%;
  text-align: center;
}
.article-figure img {
  width: 100%;
  border: 1px solid rgba(247, 220, 164, .35);
  box-shadow: 0 10px 26px rgba(30, 4, 3, .5);
}
.article-figure figcaption {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14px;
}

/* 正文内的通用元素（富文本可能带这些标签） */
.article-body img { margin: 20px auto; max-width: 72%; border: 1px solid rgba(247, 220, 164, .3); }
.article-body h2, .article-body h3 {
  margin: 1.4em 0 .7em;
  font-family: "SimSun", serif;
  color: var(--gold-light);
  letter-spacing: 2px;
}
.article-body blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(80, 12, 9, .45);
  color: var(--text-on-red);
}
.article-body a { color: var(--gold-light); text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.6em; }

/* 上一篇/下一篇 */
.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.detail-nav a {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid rgba(247, 220, 164, .3);
  background: rgba(80, 12, 9, .45);
  color: var(--text-dim);
  font-size: 14.5px;
  transition: border-color .18s ease, background-color .18s ease;
}
.detail-nav a:hover { border-color: var(--gold-light); background: rgba(140, 30, 22, .7); color: #fff; }
.detail-nav a span { display: block; color: rgba(247, 220, 164, .55); font-size: 12.5px; margin-bottom: 3px; }
.detail-nav .next { text-align: right; }
.detail-nav a em {
  display: block;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .article-figure, .article-body img { max-width: 100%; }
  .article-body { font-size: 16.5px; }
  .detail-card { padding: 26px 20px 32px; }
  .detail-nav { flex-direction: column; }
}
