/* blogpost-highend.css */

/* 页面背景渐变 */
body {
  background: linear-gradient(160deg, #f6f4f3, #eae8e6);
  font-family: "Inter", sans-serif;
  color: #333;
  line-height: 1.85;
  font-size: 1.05rem;
}

/* Blog 内容容器 */
.blogpost {
  max-width: 85%;
  margin: 80px auto;
  padding: 0 90px; /* 左右内边距 */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* H1 标题 */
.blogpost h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  color: #0b3b36;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

/* 元信息 */
.blogpost .meta {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 50px;
}

/* H2 标题 */
.blogpost h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  color: #0b3b36;
  margin: 60px 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e6e1de;
  position: relative;
}

/* 图片 */
.blogpost h2 img,
.blogpost img {
  display: block;
  max-width: 84%;
  height: auto;
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* H3 标题 */
.blogpost h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: #0b3b36;
  margin: 40px 0 18px;
}

/* 段落 */
.blogpost p {
  margin-bottom: 28px;
}

/* 强调文字 */
.blogpost strong {
  color: #a12d2d;
  font-weight: 600;
}

/* 正文链接 */
.blogpost a {
  color: #0a6f61;
  text-decoration: none;
  border-bottom: 1px dashed #0a6f61;
  transition: all 0.3s ease;
}
.blogpost a:hover {
  color: #d96a53;
  border-bottom: 1px solid #d96a53;
}

/* 列表 */
.blogpost ul,
.blogpost ol {
  padding-left: 1.8em;
  margin-bottom: 28px;
}

/* 引用 */
.blogpost blockquote {
  border-left: 5px solid #a12d2d;
  background: #fdf7f5;
  padding: 20px 24px;
  font-style: italic;
  font-size: 1.1rem;
  color: #4a4a4a;
  border-radius: 12px;
  margin: 28px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* CTA 按钮 */
.blogpost .btn {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  border-radius: 50px;
  padding: 14px 36px;
  text-decoration: none;
  background: linear-gradient(135deg, #b33b34, #e74c3c);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.blogpost .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* 返回博客链接 */
.blogpost .back-link {
  display: inline-block;
  margin-top: 50px;
  text-decoration: none;
  font-weight: 500;
  color: #0a6f61;
  transition: all 0.3s ease;
}
.blogpost .back-link:hover {
  color: #d96a53;
}

/* Header logo 调整 */
.site-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}

/* 去掉 header logo 的下划线 */
.brand a {
  text-decoration: none;
  color: inherit;
}
.brand a:hover {
  opacity: 0.85;
}

/* 固定左上角返回按钮 */
.fixed-back {
  position: fixed;
  top: 70px; /* 下移，避开 header logo */
  left: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0a6f61;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(10, 111, 97, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
  backdrop-filter: blur(6px);
  font-size: 14px;
}
.fixed-back .icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  line-height: 1;
  font-size: 16px;
}
.fixed-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  background: #f3fdfb;
}

/* 响应式 */
@media (max-width: 992px) {
  .blogpost {
    margin: 50px auto;
    padding: 30px 15px;
  }
  .blogpost h1 {
    font-size: 2.5rem;
  }
  .blogpost h2 {
    font-size: 2rem;
  }
  .blogpost h3 {
    font-size: 1.6rem;
  }
  .fixed-back {
    top: 60px;
    left: 15px;
    padding: 8px 12px;
    font-size: 13px;
  }
}
@media (max-width: 576px) {
  .blogpost {
    padding: 20px 12px;
  }
  .blogpost h1 {
    font-size: 2rem;
  }
  .blogpost h2 {
    font-size: 1.6rem;
  }
  .blogpost h3 {
    font-size: 1.3rem;
  }
  .blogpost p {
    font-size: 0.95rem;
  }
  .blogpost blockquote {
    padding: 16px 20px;
    border-left-width: 4px;
  }
  .fixed-back {
    top: 55px;
    left: 10px;
    padding: 6px 10px;
    font-size: 12px;
  }
}
