/* ============ 详情页样式 ============ */

/* 文章标题与元信息 */
.article-title {
  font-size: 2.6rem;
  font-weight: bold;
  color: #222;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.6rem;
  flex-wrap: wrap;
  font-size: 1.4rem;
  color: #888;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px dashed #e5e5e5;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* 正文 */
.article-body {
  font-size: 1.6rem;
  color: #333;
  line-height: 2;
}

.article-body p {
  margin-bottom: 2rem;
  text-indent: 2em;
}

.article-body img {
  width: 70%;
  margin: 2.4rem auto;
  border-radius: 0.4rem;
  box-shadow: 0 0.4rem 1.4rem rgba(0,0,0,0.12);
}

.article-body .img-caption {
  text-align: center;
  font-size: 1.3rem;
  color: #888;
  margin: -1.2rem 0 2.4rem;
  text-indent: 0;
}

/* 分享/标签 */
.article-tags {
  margin-top: 3.6rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 1.4rem;
  color: #888;
}

.article-tags a {
  background: #f7f7f7;
  color: #8a1c0e;
  padding: 0.4rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  transition: all 0.25s;
}

.article-tags a:hover {
  background: #8a1c0e;
  color: #fff;
}

/* 上一篇 / 下一篇 */
.article-nav {
  margin-top: 3rem;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.article-nav a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 0.4rem;
  font-size: 1.5rem;
  color: #555;
  transition: color 0.25s;
}

.article-nav a:first-child {
  border-bottom: 1px dashed #e5e5e5;
}

.article-nav a:hover {
  color: #8a1c0e;
}

.article-nav .label {
  color: #8a1c0e;
  font-weight: bold;
  flex-shrink: 0;
}

.article-nav .a-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 返回列表按钮 */
.back-btn-wrap {
  text-align: center;
  margin-top: 3.6rem;
}

.back-btn {
  display: inline-block;
  background: #8a1c0e;
  color: #fff;
  padding: 1.2rem 4rem;
  border-radius: 0.4rem;
  font-size: 1.5rem;
  transition: background 0.25s;
}

.back-btn:hover {
  background: #7a1409;
}

/* 详情页响应式 */
@media (max-width: 1024px) {
  .article-body img { width: 90%; }
}

@media (max-width: 768px) {
  .article-title { font-size: 2rem; }
  .article-body { font-size: 1.5rem; }
  .article-body img { width: 100%; }
}
/* ============ 详情页样式 ============ */

/* 文章标题与元信息 */
.article-title {
  font-size: 26px;
  font-weight: bold;
  color: #222;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #888;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px dashed #e5e5e5;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 正文 */
.article-body {
  font-size: 16px;
  color: #333;
  line-height: 2;
}

.article-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}

.article-body img {
  width: 70%;
  margin: 24px auto;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.article-body .img-caption {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: -12px 0 24px;
  text-indent: 0;
}

/* 分享/标签 */
.article-tags {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #888;
}

.article-tags a {
  background: #f7f7f7;
  color: #8a1c0e;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.25s;
}

.article-tags a:hover {
  background: #8a1c0e;
  color: #fff;
}

/* 上一篇 / 下一篇 */
.article-nav {
  margin-top: 30px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.article-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  font-size: 15px;
  color: #555;
  transition: color 0.25s;
}

.article-nav a:first-child {
  border-bottom: 1px dashed #e5e5e5;
}

.article-nav a:hover {
  color: #8a1c0e;
}

.article-nav .label {
  color: #8a1c0e;
  font-weight: bold;
  flex-shrink: 0;
}

.article-nav .a-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 返回列表按钮 */
.back-btn-wrap {
  text-align: center;
  margin-top: 36px;
}

.back-btn {
  display: inline-block;
  background: #8a1c0e;
  color: #fff;
  padding: 12px 40px;
  border-radius: 4px;
  font-size: 15px;
  transition: background 0.25s;
}

.back-btn:hover {
  background: #7a1409;
}

/* 详情页响应式 */
@media (max-width: 1024px) {
  .article-body img { width: 90%; }
}

@media (max-width: 768px) {
  .article-title { font-size: 20px; }
  .article-body { font-size: 15px; }
  .article-body img { width: 100%; }
}
