/* 博客详情头部 */
.blog-detail-header {
  text-align: center;
  padding: 80px 0 40px;
  position: relative;
  margin-bottom: 40px;
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("/bigpic/20250110/kmuzaka@.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; /* 或者使用 100% 100% */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-top: 20px;
}

.blog-detail-title {
  font-size: 42px;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 25px;
  line-height: 1.3;
  color: #2d3436;
}

.blog-detail-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
  color: #636e72;
  font-size: 18px;
}

.meta-item {
  display: flex;
  align-items: center;
}

.meta-item i {
  margin-right: 8px;
  color: #6a11cb;
}

.category-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(106, 17, 203, 0.1);
  color: #6a11cb;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
}

/* 博客内容布局 */
.blog-detail-container {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.blog-detail-main {
  flex: 3;
}

.blog-detail-sidebar {
  flex: 1;
}

/* 博客内容样式 */
.blog-content {
  background: white;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.blog-intro {
  font-size: 20px;
  font-weight: 500;
  color: #2d3436;
  padding: 20px;
  background: #f8f9ff;
  border-left: 4px solid #6a11cb;
  border-radius: 0 8px 8px 0;
  margin-bottom: 40px;
}

.blog-section {
  margin-bottom: 40px;
}

.blog-section h2 {
  font-size: 32px;
  margin: 40px 0 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f2f6;
  color: #2d3436;
  position: relative;
}

.blog-section h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
}

.blog-section h3 {
  font-size: 24px;
  margin: 30px 0 20px;
  color: #2d3436;
}

.blog-section p {
  margin-bottom: 25px;
  font-size: 18px;
  color: #4a5568;
  line-height: 1.8;
}

.blog-section img {
  width: 100%;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.blog-highlight {
  background: linear-gradient(135deg, #f8f9ff 0%, #edf0ff 100%);
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  border-left: 4px solid #6a11cb;
}

.blog-quote {
  font-style: italic;
  border-left: 4px solid #2575fc;
  padding: 20px 30px;
  background: #f1f8ff;
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
  font-size: 20px;
  color: #2d3436;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.blog-tag {
  display: inline-block;
  padding: 8px 20px;
  background: #f1f2f6;
  color: #2d3436;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
}

.blog-tag:hover {
  background: #6a11cb;
  color: white;
  transform: translateY(-2px);
}

/* 作者信息 */
.author-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid #f1f2f6;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2d3436;
}

.author-title {
  color: #6a11cb;
  font-weight: 500;
  margin-bottom: 15px;
}

.author-bio {
  color: #636e72;
  margin-bottom: 20px;
  font-size: 17px;
}

.author-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d3436;
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background: #6a11cb;
  color: white;
  transform: translateY(-3px);
}

/* 评论区域 */
.comments-section {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2d3436;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  border-radius: 2px;
}

.comment-form {
  margin-bottom: 50px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3436;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #6a11cb;
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  padding: 14px 35px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(37, 117, 252, 0.3);
}

/* 评论列表 */
.comment-list {
  list-style: none;
}

.comment-item {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-author {
  font-size: 18px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 5px;
}

.comment-date {
  color: #636e72;
  font-size: 14px;
}

.comment-content {
  color: #4a5568;
  line-height: 1.7;
  font-size: 17px;
  padding-left: 80px;
}

.reply-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background: #f1f2f6;
  border: none;
  border-radius: 30px;
  color: #2d3436;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 15px;
}

.reply-btn i {
  margin-right: 5px;
}

.reply-btn:hover {
  background: #6a11cb;
  color: white;
}

/* 相关文章 */
.related-posts {
  margin-bottom: 60px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.related-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-image {
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 25px;
}

.related-category {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(106, 17, 203, 0.1);
  color: #6a11cb;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 15px;
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2d3436;
  transition: color 0.3s;
}

.related-card:hover .related-title {
  color: #6a11cb;
}

.related-meta {
  display: flex;
  color: #636e72;
  font-size: 14px;
}

.related-meta span {
  margin-right: 15px;
}

/* 侧边栏 */
.sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  position: sticky;
  top: 100px;
}

.widget-title {
  font-size: 24px;
  color: #2d3436;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  border-radius: 2px;
}

.toc-list {
  list-style: none;
}

.toc-item {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.toc-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #6a11cb;
  border-radius: 50%;
}

.toc-link {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding: 8px 0;
}

.toc-link:hover {
  color: #6a11cb;
}

.share-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s;
}

.share-btn i {
  margin-right: 8px;
  font-size: 18px;
}

.share-btn:hover {
  transform: translateY(-3px);
}

.share-facebook {
  background: #3b5998;
}

.share-twitter {
  background: #1da1f2;
}

.share-linkedin {
  background: #0077b5;
}

.share-wechat {
  background: #07c160;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .blog-detail-container {
    flex-direction: column;
  }

  .blog-detail-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .blog-detail-header {
    padding: 60px 20px 30px;
  }

  .blog-detail-title {
    font-size: 28px;
  }

  .blog-content {
    padding: 30px 20px;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .author-social {
    justify-content: center;
  }

  .comment-content {
    padding-left: 0;
  }

  .comments-section {
    padding: 30px 20px;
  }
}
