/*
 * Detail Page Styles
 * 基于常规官网详情页设计的样式：标题、元信息、正文、图片、列表、上下篇导航与返回按钮。
 * 响应适配：在窄屏设备上优化排版与间距。
 */

/* 容器与白底卡片 */
.content-main { padding: 20px 40px;  color: #666; font-size: 14px;}
.banner-overlay { background: rgba(0, 0, 0, 0.2); }

/* 标题与元信息 */
.detail-header { margin-bottom: 24px; text-align: center; }
.detail-title { font-size: 24px; color: #222; font-weight: 500; margin: 0 0 20px;}
.detail-meta { color: #888; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 1px solid #eee; padding-bottom: 20px;}
.detail-meta .meta-sep { color: #ccc; }
.detail-meta .meta-item { white-space: nowrap; }

/* 正文排版（富文本区域不加样式，保持编辑器原始排版） */
.detail-body {
  padding: 20px 0;
  min-height: 450px;
}

/* 上下篇与返回 */
.detail-footer { margin-top: 24px; border-top: 1px solid #eee; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-nav { display: flex; flex-direction: column; gap: 0px; margin-bottom: 0; }
.detail-nav a { color: #555; text-decoration: none; transition: color .2s ease; }
.detail-nav a:hover { color: var(--primary-color); text-decoration: none; }
.detail-actions { display: flex; justify-content: flex-end; }
.btn { display: inline-block; padding: 8px 30px; color: var(--text-primary); text-decoration: none; background: #fff; transition: all .2s ease; }
.btn-back { background: #eee; color: #666; font-size: 16px; }
.btn-back:hover { background: var(--primary-color); color: #fff; text-decoration: none; }

.detail-attachments h4 {
  margin-bottom: 5px;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .detail-title { font-size: 18px; }
  /* 手机端：footer 分两行，避免左右挤在一起 */
  .detail-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .detail-footer .detail-nav,
  .detail-footer .detail-actions { width: 100%; font-size: 14px; }
  .detail-body { font-size: 14px !important;  padding: 0; min-height: auto;}
  .detail-actions { justify-content: center; }
  .btn-back { font-size: 14px; }
}
